_drupal_rewrite_settings_is_array_index

_drupal_rewrite_settings_is_array_index($type) Helper for drupal_rewrite_settings(). Checks whether this token represents a valid array index: a number or a string. Parameters int $type: The token type. Return value bool TRUE if this token represents a number or a string. See also token_name() File core/includes/install.inc, line 397 API functions for installing modules and themes. Code function _drupal_rewrite_settings_is_array_index($type) { $is_integer = $type == T_LNUMBER; $is_floa

_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_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_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_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

_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_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_exception_handler_additional

_drupal_exception_handler_additional($exception, $exception2) Displays any additional errors caught while handling an exception. Parameters \Exception|\Throwable $exception: The first exception object that was thrown. \Exception|\Throwable $exception2: The second exception object that was thrown. File core/includes/bootstrap.inc, line 587 Functions that need to be loaded on every Drupal request. Code function _drupal_exception_handler_additional($exception, $exception2) { // Another uncaug

_drupal_exception_handler

_drupal_exception_handler($exception) Provides custom PHP exception handling. Uncaught exceptions are those not enclosed in a try/catch block. They are always fatal: the execution of the script will stop as soon as the exception handler exits. Parameters \Exception|\Throwable $exception: The exception object that was thrown. File core/includes/bootstrap.inc, line 561 Functions that need to be loaded on every Drupal request. Code function _drupal_exception_handler($exception) { require_once