_drupal_rewrite_settings_dump_one

_drupal_rewrite_settings_dump_one(\stdClass $variable, $prefix = '', $suffix = '') Helper for drupal_rewrite_settings(). Dump the value of a value property and adds the comment if it exists. Parameters object $variable: A stdClass object with at least a value property. string $prefix: A string to prepend to the variable's value. string $suffix: A string to append to the variable's value. Return value string A string containing valid PHP code of the variable suitable for placing into settings.

_drupal_rewrite_settings_is_simple

_drupal_rewrite_settings_is_simple($type, $value) Helper for drupal_rewrite_settings(). Checks whether this token represents a scalar or NULL. Parameters int $type: The token type. string $value: The value of the token. Return value bool TRUE if this token represents a scalar or NULL. See also token_name() File core/includes/install.inc, line 374 API functions for installing modules and themes. Code function _drupal_rewrite_settings_is_simple($type, $value) { $is_integer = $type == T_LNU

_drupal_rewrite_settings_global

_drupal_rewrite_settings_global(&$ref, $variable) Helper for drupal_rewrite_settings(). Makes the new settings global. Parameters array|null $ref: A reference to a nested index in $GLOBALS. array|object $variable: The nested value of the setting being copied. File core/includes/install.inc, line 414 API functions for installing modules and themes. Code function _drupal_rewrite_settings_global(&$ref, $variable) { if (is_object($variable)) { $ref = $variable->value; } else

_drupal_rewrite_settings_dump

_drupal_rewrite_settings_dump($variable, $variable_name) Helper for drupal_rewrite_settings(). Dump the relevant value properties. Parameters array|object $variable: The container for variable values. string $variable_name: Name of variable. Return value string A string containing valid PHP code of the variable suitable for placing into settings.php. File core/includes/install.inc, line 438 API functions for installing modules and themes. Code function _drupal_rewrite_settings_dump($variabl

_drupal_maintenance_theme

_drupal_maintenance_theme() Sets up the theming system for maintenance page. Used for site installs, updates and when the site is in maintenance mode. It also applies when the database is unavailable or bootstrap was not complete. Seven is always used for the initial install and update operations. In other cases, Bartik is used, but this can be overridden by setting a "maintenance_theme" key in the $settings variable in settings.php. File core/includes/theme.maintenance.inc, line 20 Theming for

_drupal_error_handler_real

_drupal_error_handler_real($error_level, $message, $filename, $line, $context) Provides custom PHP error handling. Parameters $error_level: The level of the error raised. $message: The error message. $filename: The filename that the error was raised in. $line: The line number the error was raised at. $context: An array that points to the active symbol table at the point the error occurred. File core/includes/errors.inc, line 60 Functions for error handling. Code function _drupal_error_handle

_drupal_error_handler

_drupal_error_handler($error_level, $message, $filename, $line, $context) Provides custom PHP error handling. Parameters $error_level: The level of the error raised. $message: The error message. $filename: The filename that the error was raised in. $line: The line number the error was raised at. $context: An array that points to the active symbol table at the point the error occurred. File core/includes/bootstrap.inc, line 546 Functions that need to be loaded on every Drupal request. Code fu

_drupal_flush_css_js

_drupal_flush_css_js() Changes the dummy query string added to all CSS and JavaScript files. Changing the dummy query string appended to CSS and JavaScript files forces all browsers to reload fresh files. File core/includes/common.inc, line 1158 Common functions that many Drupal modules will need to reference. Code function _drupal_flush_css_js() { // The timestamp is converted to base 36 in order to make it more compact. Drupal::state()->set('system.css_js_query_string', base_convert(

_drupal_get_error_level

_drupal_get_error_level() Returns the current error level. This function should only be used to get the current error level prior to the kernel being booted or before Drupal is installed. In all other situations the following code is preferred: \Drupal::config('system.logging')->get('error_level'); Return value string The current error level. File core/includes/errors.inc, line 301 Functions for error handling. Code function _drupal_get_error_level() { // Raise the error level to maxim

_drupal_log_error

_drupal_log_error($error, $fatal = FALSE) Logs a PHP error or exception and displays an error page in fatal cases. Parameters $error: An array with the following keys: %type, @message, %function, %file, %line, @backtrace_string, severity_level, and backtrace. All the parameters are plain-text, with the exception of @message, which needs to be an HTML string, and backtrace, which is a standard PHP backtrace. bool $fatal: TRUE for: An exception is thrown and not caught by something else. A recov