_theme_set_registry

Versions
6
_theme_set_registry($registry)
7
_theme_set_registry($registry = NULL)

Store the theme registry in memory.

Parameters

$registry A registry array as returned by _theme_build_registry()

Return value

The theme registry array stored in memory

▾ 3 functions call _theme_set_registry()

theme_get_registry in includes/theme.inc
Get the theme registry.
_theme_load_offline_registry in includes/theme.maintenance.inc
This builds the registry when the site needs to bypass any database calls.
_theme_load_registry in includes/theme.inc
Get the theme_registry cache from the database; if it doesn't exist, build it.

Code

includes/theme.inc, line 230

<?php
function _theme_set_registry($registry = NULL) {
  static $theme_registry = NULL;

  if (isset($registry)) {
    $theme_registry = $registry;
  }

  return $theme_registry;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.