_theme_set_registry

Definition

_theme_set_registry($registry = NULL)
drupal/includes/theme.inc, line 212

Description

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

Code

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

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

  return $theme_registry;
}