You are here

function menu_example_user_page_title in Examples for Developers 7

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

Title callback to rename the title dynamically, based on user_page_title().

Parameters

object $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 486
Module file for menu_example.

Code

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