You are here

function shoutbox_user_page in Shoutbox 7.2

Same name and namespace in other branches
  1. 6.2 shoutbox_user/shoutbox_user.module \shoutbox_user_page()
  2. 7 shoutbox_user/shoutbox_user.module \shoutbox_user_page()

Page callback for user shoutbox page

1 string reference to 'shoutbox_user_page'
shoutbox_user_menu in shoutbox_user/shoutbox_user.module
Implements hook_menu().

File

shoutbox_user/shoutbox_user.module, line 32

Code

function shoutbox_user_page($user) {

  // Set the title with the user's name
  $name = check_plain($user->name);

  // TODO(disterics): Make this themeable
  drupal_set_title(t('!name Shoutbox', array(
    '!name' => l($name . '\'s', "user/{$user->uid}"),
  )), PASS_THROUGH);

  // Return normal shoutbox page
  return shoutbox_view();
}