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 489 - Hook implementations for the Menu Example module.
Code
function menu_example_user_page_title($account) {
return is_object($account) ? t("@name's account", array('@name' => user_format_name($account))) : '';
}