theme_get_registry

Definition

theme_get_registry($registry = NULL)
includes/theme.inc, line 188

Description

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.

Code

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

  return $theme_registry;
}
?>
 
 

Drupal is a registered trademark of Dries Buytaert.