Added reserve leader
This commit is contained in:
@@ -97,7 +97,13 @@ function booking_permission() {
|
||||
),
|
||||
'edit bookings' => array(
|
||||
'title' => t('Edit all bookings'),
|
||||
),
|
||||
'view study groups' => array(
|
||||
'title' => t('View study groups'),
|
||||
),
|
||||
'edit study groups' => array(
|
||||
'title' => t('Edit study groups'),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -278,26 +284,31 @@ function booking_menu() {
|
||||
'access arguments' => array("access waiting list"),
|
||||
'type' => MENU_NORMAL_ITEM,
|
||||
);
|
||||
|
||||
/**
|
||||
* Define the administration menu
|
||||
*/
|
||||
|
||||
//configure study groups
|
||||
$items['admin/config/booking/studygroups'] = array(
|
||||
'title' => 'View All Study Groups',
|
||||
'title' => 'View Study Groups',
|
||||
'description' => 'View Study Group memberships',
|
||||
'page callback' => 'booking_studygroups_view_summary',
|
||||
'access arguments' => array("access administration pages"),
|
||||
'access arguments' => array("view study groups"),
|
||||
'type' => MENU_NORMAL_ITEM,
|
||||
);
|
||||
|
||||
$items['admin/config/booking/studygroups/%/view'] = array(
|
||||
'title' => 'View Study Group',
|
||||
'description' => 'View Study Group memberships',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_studygroups_view_form', 4),
|
||||
'access arguments' => array('view study groups'),
|
||||
//'type' => MENU_NORMAL_ITEM,
|
||||
);
|
||||
|
||||
$items['admin/config/booking/studygroups/selectleaders'] = array(
|
||||
'title' => 'Study Group Leaders',
|
||||
'description' => 'Define attendees to lead or help study groups',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_available_leadhelp_select_form'),
|
||||
'access arguments' => array('access administration pages'),
|
||||
'access arguments' => array('edit study groups'),
|
||||
'type' => MENU_LOCAL_ACTION,
|
||||
);
|
||||
|
||||
@@ -306,21 +317,10 @@ function booking_menu() {
|
||||
'description' => 'Calculate Study Group memberships',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_studygroups_calculate'),
|
||||
'access arguments' => array('access administration pages'),
|
||||
'access arguments' => array('edit study groups'),
|
||||
'type' => MENU_LOCAL_ACTION,
|
||||
);
|
||||
|
||||
|
||||
|
||||
$items['admin/config/booking/studygroups/%/view'] = array(
|
||||
'title' => 'View Study Group',
|
||||
'description' => 'View Study Group memberships',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_studygroups_view_form', 4),
|
||||
'access arguments' => array('access administration pages'),
|
||||
//'type' => MENU_NORMAL_ITEM,
|
||||
);
|
||||
|
||||
//Configure prices
|
||||
$items['admin/config/booking/prices/create'] = array(
|
||||
'title' => 'Add New Price Entry',
|
||||
|
Reference in New Issue
Block a user