[development] From Michelle: Request to themers.

John Morahan john.morahan at gmail.com
Sun Dec 16 10:57:26 UTC 2007

Why not have them rename the original to, say,
_phptemplate_variables_original(), and then add a new
_phptemplate_variables() that calls the original and adds more stuff to
it?  That way you get the original's variables no matter how it returns

function _phptemplate_variables($hook, $vars) {
  $vars = array();
  if (function_exists('_phptemplate_variables_original')) {
    $vars = _phptemplate_variables_original($hook, $vars);
  if (module_exists('advanced_forum')) {
    $vars = advanced_forum_addvars($hook, $vars);
  return $vars;


More information about the development mailing list