function theme_get_registry

cis7 theme.inc theme_get_registry($complete = TRUE)
cle7 theme.inc theme_get_registry($complete = TRUE)
elmsmedia7 theme.inc theme_get_registry($complete = TRUE)
icor7 theme.inc theme_get_registry($complete = TRUE)
meedjum_blog7 theme.inc theme_get_registry($complete = TRUE)
mooc7 theme.inc theme_get_registry($complete = TRUE)

Gets the theme registry.

Parameters

$complete: Optional boolean to indicate whether to return the complete theme registry array or an instance of the ThemeRegistry class. If TRUE, the complete theme registry array will be returned. This is useful if you want to foreach over the whole registry, use array_* functions or inspect it in a debugger. If FALSE, an instance of the ThemeRegistry class will be returned, this provides an ArrayObject which allows it to be accessed with array syntax and isset(), and should be more lightweight than the full registry. Defaults to TRUE.

Return value

The complete theme registry array, or an instance of the ThemeRegistry class.

15 calls to theme_get_registry()
advagg_admin_info_form in sites/all/modules/ulmus/advagg/advagg.admin.inc
Form builder; Show info about advagg and advagg settings.
apc_shutdown in sites/all/modules/ulmus/apc/apc.module
See apc_init() which registers this function as a shutdown function. Displays apc stats in the footer.
contextual_preprocess in modules/contextual/contextual.module
Implements hook_preprocess().
devel_shutdown_query in sites/all/modules/ulmus/devel/devel.module
devel_themer_theme_twin in sites/all/modules/ulmus/devel_themer/devel_themer.module
Nearly clones the Drupal API theme() function.

... See full list

4 string references to 'theme_get_registry'
apc_shutdown in sites/all/modules/ulmus/apc/apc.module
See apc_init() which registers this function as a shutdown function. Displays apc stats in the footer.
devel_shutdown_query in sites/all/modules/ulmus/devel/devel.module
drupal_theme_rebuild in includes/theme.inc
Forces the system to rebuild the theme registry.
t_safe in sites/all/modules/ulmus/devel/devel.module

File

includes/theme.inc, line 255
The theme system, which controls the output of Drupal.

Code

function theme_get_registry($complete = TRUE) {
  // Use the advanced drupal_static() pattern, since this is called very often.
  static $drupal_static_fast;
  if (!isset($drupal_static_fast)) {
    $drupal_static_fast['registry'] = &drupal_static('theme_get_registry');
  }
  $theme_registry = &$drupal_static_fast['registry'];

  // Initialize the theme, if this is called early in the bootstrap, or after
  // static variables have been reset.
  if (!is_array($theme_registry)) {
    drupal_theme_initialize();
    $theme_registry = array();
  }

  $key = (int) $complete;

  if (!isset($theme_registry[$key])) {
    list($callback, $arguments) = _theme_registry_callback();
    if (!$complete) {
      $arguments[] = FALSE;
    }
    $theme_registry[$key] = call_user_func_array($callback, $arguments);
  }

  return $theme_registry[$key];
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.