DrupalBin
Submit Code
About
Recent Posts
Code
50 min 53 sec
ago
Code
4 hours 3 min
ago
Fix for Code
4 hours 12 min
ago
d5, hook_comment, trying to force an input filter format
7 hours 30 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
Fix for custom _phptemplate_variables()
View
Download
Fix
This fix will not be saved to the database until you submit.
Summary:
Tags:
Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Source code:
*
// Modified by Michelle (custom) function _phptemplate_variables($hook, $vars) { if (module_exists('advanced_profile')) { $vars = advanced_profile_addvars($hook, $vars); } if ($hook == 'page') { // Set all tabs on the user page to have the email address as the title if (arg(0) == 'user') { $uid = arg(1); $account = user_load(array('uid' => $uid)); $vars['title'] = strip_tags($account->mail); } if ($secondary = menu_secondary_local_tasks()) { $output = '<span class="clear"></span>'; $output .= "<ul class=\"tabs secondary\">\n". $secondary ."</ul>\n"; $vars['tabs2'] = $output; } // Hook into color.module if (module_exists('color')) { _color_page_alter($vars); } return $vars; } return $vars; }
Syntax highlighting mode:
ActionScript
ColdFusion
Diff
Drupal
Drupal 5
Drupal 6
HTML
Javascript
MySQL
PHP
Python
robots.txt
SQL
Text
Select the syntax highlighting mode to use.