In my last post I explained how to hide menu-tabs that were defined by a Drupal module without actually losing the module’s functionality. Now we’ll see how to change the title of menu-items.
Changing the tabs on the “/user” page
For example, let’s change the “Create new account” and “Request new password” menu tabs on the “/user” page as shown below.

Changing menu-items titles
In a similar fashion like we used hook_menu_alter and changed the menu-items “type” to hide menu-items, we need to change a menu-items specification to alter the title.
This time we target the title attribute. Doing so we can override the existing title with something else.
So we target the title attribute of menu-items within a hook_menu_alter:
/**
* Implements hook_menu_alter().
*
* We want to change the menu-items titles on the login form.
*/
function gluecode_menu_alter(&$items) {
$items['user/register']['title'] = 'Feel like joining?'
$items['user/password']['title'] = 'Lost your password?';
}
And this changes the “Create new account” and “Request new password” links to “Feel like joining?” and “Lost your password?” as shown below.

3 comments
Titan's menus
RE: Titan's menus
The content of this field is