I am trying to change the page title of /relationships from 'My relationships' to 'My contacts'. I have gone through the first set steps 1-3 on http://drupal.org/node/361657#comment-1424780 by putting the two functions in template.php file and renaming and also copied the two tlp.php file to my theme. I made the following changes to tra_preprocess_user_relationships(&$variables) (my theme is tra)
if ($account->uid == $user->uid) {
$msg = $relationship_type ? t("My %contacts") : t("All my contacts");
}
else {
$msg = $relationship_type ? t("%username's %contacts") : t("All %username's contacts");
}
$variables['title'] = t($msg, array(
'%username' => $account->name,
'%relationships' => $relationship_type->plural_name ? $relationship_type->plural_name : $relationship_type->name
));
The page title of /relationships still says "My relationships" instead of "My contacts".
Is this not the way to change the page name? Do I need to do something else?
Thanks for your help - Nancy
Comments
Comment #1
alex.k commentedIs this still an issue for you? Does visiting admin/build/themes help?
Alternatively you can also use the String Overrides module if you just need to alter the wording.
Comment #2
nrackleff commentedWe were able to accomplish it with String Overrides. Thanks for the suggestion. -Nancy