You are here

function _phptemplate_variables in Hostmaster (Aegir) 6

Implements a D6 preprocess emulation layer.

File

themes/eldir/template.php, line 7

Code

function _phptemplate_variables($hook, $vars) {
  global $theme;
  $function = "{$theme}_preprocess_{$hook}";
  if (function_exists($function)) {
    $function($vars);
  }
  return $vars;
}