Same name and namespace in other branches
  1. 7.x-1.x menu_example/menu_example.module \menu_example_user_page_title()

Title callback to rename the title dynamically.

Parameters

$account: User account related to the visited page.

Related topics

1 string reference to 'menu_example_user_page_title'
menu_example_menu_alter in menu_example/menu_example.module
Implements hook_menu_alter().

File

menu_example/menu_example.module, line 425
Demonstrates uses of the Menu APIs in Drupal, including hook_menu(), hook_menu_alter(), and hook_menu_link_alter().

Code

function menu_example_user_page_title($account) {
  return t("@name's account", array(
    '@name' => $account->name,
  ));
}