[Answered] Take over the user account view tab: Snippet doesn't work with the following themes
Wed, 08/08/2007 - 21:23
I was trying the snippet on these themes, since I wanted to use them but it seems they are not compatible with your tutorial for some reason
http://drupal.org/project/alek_2_0
http://drupal.org/project/amadou
I get the following errors
* warning: array_merge(): Argument #2 is not an array in C:\apache2triad\htdocs\site\themes\engines\phptemplate\phptemplate.engine on line 63. * warning: extract(): First argument should be an array in C:\apache2triad\htdocs\site\themes\engines\phptemplate\phptemplate.engine on line 391.
after pasting this function
function _phptemplate_variables($hook, $vars) { if ($hook == 'page') { if (arg(0) == 'user') { $vars['tabs'] = str_replace('Edit</a>', 'Edit Account</a>', $vars['tabs']); } return $vars; }}
Thanks
Site contents are licensed under a
Merging can be tricky. I'll try to make this clearer in version 3.
Michelle