16 Dec
2007
16 Dec
'07
11:57 a.m.
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 them. 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; } -john