1 menu_example.module menu_example_user_page_title($account)

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

Parameters

object $account: User account related to the visited page.

Related topics

File

modules/examples/menu_example/menu_example.module, line 490
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))) : '';
}