You are here

function author_pane_call_preprocess in Author Pane 5

Call preprocess functions for a theme hook.

By calling this in a theme function prior to calling the template callback, we emulate the theme registry and preprocessor hooks of D6.

Parameters

$hook: A theme hook that need preprocessing.

$variables: The theme variables array. This is used to return by reference.

Return value

Return by reference the $variables array

1 call to author_pane_call_preprocess()
theme_author_pane in ./author_pane.module
Theme function wrapper around D6 style preprocess function.

File

./d6_compat.inc, line 19

Code

function author_pane_call_preprocess($hook, &$variables) {
  $functions = author_pane_get_preprocess($hook);
  $args = array(
    &$variables,
    $hook,
  );
  foreach ($functions as $function) {
    if (function_exists($function)) {
      call_user_func_array($function, $args);
    }
  }
}