function _theme_registry_callback

Set the callback that will be used by theme_get_registry() to fetch the registry.

Parameters

$callback: The name of the callback function.

$arguments: The arguments to pass to the function.

3 calls to _theme_registry_callback()
theme_get_registry in drupal/core/includes/theme.inc
Get the theme registry.
theme_test_init in drupal/core/modules/system/tests/modules/theme_test/theme_test.module
Implements hook_init().
_drupal_theme_initialize in drupal/core/includes/theme.inc
Initialize the theme system given already loaded information. This function is useful to initialize a theme when no database is present.

File

drupal/core/includes/theme.inc, line 297
The theme system, which controls the output of Drupal.

Code

function _theme_registry_callback($callback = NULL, array $arguments = array()) {
  static $stored;
  if (isset($callback)) {
    $stored = array(
      $callback,
      $arguments,
    );
  }
  return $stored;
}