You are here

function shoutbox_user_menu in Shoutbox 7.2

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

Implements hook_menu().

File

shoutbox_user/shoutbox_user.module, line 6

Code

function shoutbox_user_menu() {
  return array(
    'shoutbox/user/%user' => array(
      'title' => 'Shoutbox',
      'page callback' => 'shoutbox_user_page',
      'page arguments' => array(
        2,
      ),
      'access callback' => '_shoutbox_user_page_access',
      'access arguments' => array(),
      'description' => 'A dedicated shoutbox page for user shouts.',
      'type' => MENU_CALLBACK,
    ),
    'shoutbox/user/%user/js/view' => array(
      'title' => 'Shout tag',
      'page callback' => 'shoutbox_user_js_view',
      'page arguments' => array(
        2,
      ),
      'access callback' => '_shoutbox_user_page_access',
      'access arguments' => array(),
      'description' => 'Javascript callback for viewing a user\'s shouts',
      'type' => MENU_CALLBACK,
    ),
  );
}