16 Dec
2007
16 Dec
'07
3:11 p.m.
On 12/16/2007 4:57:26 AM, John Morahan (john.morahan@gmail.com) wrote:
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
Now that is a _great_ idea! I'll put that down in the readme as an option if they aren't able to do the merge. Thanks! Michelle