You are here

function shoutbox_group_menu in Shoutbox 7

Same name and namespace in other branches
  1. 6.2 shoutbox_group/shoutbox_group.module \shoutbox_group_menu()
  2. 7.2 shoutbox_group/shoutbox_group.module \shoutbox_group_menu()

Implementation of hook_menu().

File

shoutbox_group/shoutbox_group.module, line 19

Code

function shoutbox_group_menu() {
  return array(
    'shoutbox/group/%node' => array(
      'title' => 'Shout box',
      'page callback' => 'shoutbox_group_page',
      'page arguments' => array(
        2,
      ),
      'access callback' => 'shoutbox_group_group_access',
      //'access arguments' => array('access shoutbox'),
      'access arguments' => array(
        'view',
        2,
      ),
      'description' => 'A dedicated shoutbox page for group shouts.',
      'type' => MENU_CALLBACK,
    ),
    'shoutbox/group/%node/js/view' => array(
      'title' => 'Shout box',
      'page callback' => 'shoutbox_group_js_view',
      'page arguments' => array(
        2,
      ),
      'access callback' => 'shoutbox_group_group_access',
      //'access arguments' => array('access shoutbox'),
      'access arguments' => array(
        'view',
        2,
      ),
      'description' => 'Javascript callback for shout updates.',
      'type' => MENU_CALLBACK,
    ),
  );
}