function bbb_menu in BigBlueButton 7
Same name and namespace in other branches
- 8 modules/bbb_node/bbb_node.module \bbb_menu()
- 6 bbb.module \bbb_menu()
Implement HOOK_menu().
File
- ./
bbb.module, line 85 - Big Blue Button - Enables universities and colleges to deliver a high-quality learning experience.
Code
function bbb_menu() {
$items = array();
$show_local_tasks = variable_get('bbb_local_tasks', 1);
$items['node/%node/meeting/attend'] = array(
'title' => 'Attend Meeting',
'page callback' => 'bbb_meeting_attend',
'page arguments' => array(
1,
),
'access callback' => 'bbb_access_attendee',
'access arguments' => array(
1,
),
'type' => $show_local_tasks ? MENU_LOCAL_TASK : MENU_CALLBACK,
'weight' => 2,
);
$items['node/%node/meeting/moderate'] = array(
'title' => 'Moderate Meeting',
'page callback' => 'bbb_meeting_moderate',
'page arguments' => array(
1,
),
'access callback' => 'bbb_access_moderator',
'access arguments' => array(
1,
),
'type' => $show_local_tasks ? MENU_LOCAL_TASK : MENU_CALLBACK,
'weight' => 2,
);
$items['node/%node/meeting/end-confirm'] = array(
'title' => 'Terminate Meeting',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'bbb_end_confirm_form',
1,
),
'access callback' => 'bbb_access_moderator',
'access arguments' => array(
1,
),
'type' => MENU_CALLBACK,
);
$items['node/%node/redirect/attend'] = array(
'page callback' => 'bbb_redirect',
'page arguments' => array(
1,
3,
),
'access callback' => 'bbb_access_attendee',
'access arguments' => array(
1,
),
'type' => MENU_CALLBACK,
);
$items['node/%node/redirect/moderate'] = array(
'page callback' => 'bbb_redirect',
'page arguments' => array(
1,
3,
),
'access callback' => 'bbb_access_moderator',
'access arguments' => array(
1,
),
'type' => MENU_CALLBACK,
);
$items['node/%node/meeting/status'] = array(
'page callback' => 'bbb_status',
'page arguments' => array(
1,
),
'access callback' => 'bbb_access_attendee',
'access arguments' => array(
1,
),
'type' => MENU_CALLBACK,
'file' => 'includes/api.bbb.inc',
);
$items['admin/config/media/bigbluebutton'] = array(
'title' => 'Big Blue Button meetings',
'description' => 'Default server and meeting settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'bbb_settings',
),
'access arguments' => array(
'administer big blue button',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'includes/pages.bbb.inc',
);
return $items;
}