1.20.x theme.inc _theme_registry_callback($callback = NULL, array $arguments = array())

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.

Return value

array: The currently set theme registry callback and arguments.

File

includes/theme.inc, line 308
The theme system, which controls the output of Backdrop.

Code

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