function theme_get_registry

7.x theme.inc theme_get_registry($complete = TRUE)
6.x theme.inc theme_get_registry($registry = NULL)

Retrieve the stored theme registry. If the theme registry is already in memory it will be returned; otherwise it will attempt to load the registry from cache. If this fails, it will construct the registry and cache it.

3 calls to theme_get_registry()
drupal_render_form in drupal-6.x/includes/form.inc
Renders a structured form array into themed HTML.
theme in drupal-6.x/includes/theme.inc
Generates the themed output.
_theme_set_registry in drupal-6.x/includes/theme.inc
Store the theme registry in memory.

File

drupal-6.x/includes/theme.inc, line 200
The theme system, which controls the output of Drupal.

Code

function theme_get_registry($registry = NULL) {
  static $theme_registry = NULL;
  if (isset($registry)) {
    $theme_registry = $registry;
  }

  return $theme_registry;
}