[Answered] Take over the user account view tab: Snippet doesn't work with the following themes

[Answered] Take over the user account view tab: Snippet doesn't work with the following themes

1 reply
Joined: 06/02/2007
User offline. Last seen 8 weeks 4 days ago.
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
Joined: 05/13/2007
User offline. Last seen 6 hours 59 min ago.
Merging

Merging can be tricky. I'll try to make this clearer in version 3.

Michelle

Post new comment
The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><blockquote>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options