function _theme_registry_callback

Sets the callback that will be used by theme_get_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 includes/theme.inc
Gets the theme registry.
theme_test_exit in modules/simpletest/tests/theme_test.module
Implements hook_exit().
_drupal_theme_initialize in includes/theme.inc
Initializes the theme system given already loaded information.

File

includes/theme.inc, line 291

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.