Tweaks for study/reading groups
This commit is contained in:
@@ -353,7 +353,43 @@ function booking_menu() {
|
||||
//configure study groups
|
||||
if (variable_get('booking_enable_studygroups', 0) == 1)
|
||||
{
|
||||
//the config pages for study groups
|
||||
$items['admin/config/booking/studygroups'] = array(
|
||||
'title' => 'Booking Module Study Group Configuration',
|
||||
'description' => 'Define and configure Study Groups for the Booking module',
|
||||
'page callback' => 'booking_studygroups_admin',
|
||||
'access arguments' => array('administer site configuration'),
|
||||
'type' => MENU_NORMAL_ITEM,
|
||||
);
|
||||
|
||||
$items['admin/config/booking/studygroups/add'] = array(
|
||||
'title' => 'Add Study Group Definition',
|
||||
'description' => 'Add Study Group Definition',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_studygroups_define_form', true),
|
||||
'access arguments' => array('administer site configuration'),
|
||||
'type' => MENU_LOCAL_ACTION,
|
||||
);
|
||||
|
||||
$items['admin/config/booking/studygroups/%/edit'] = array(
|
||||
'title' => 'Edit Study Group Definition',
|
||||
'description' => 'Edit Study Group Definition',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_studygroups_define_form', false, 4),
|
||||
'access arguments' => array('edit study groups'),
|
||||
//'type' => MENU_NORMAL_ITEM,
|
||||
);
|
||||
|
||||
$items['admin/config/booking/studygroups/colours'] = array(
|
||||
'title' => 'Process Reading Group Colours',
|
||||
'description' => 'Update the reading group colour based on the studygroup id',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_studygroups_process_colours'),
|
||||
'access arguments' => array('administer site configuration'),
|
||||
'type' => MENU_LOCAL_ACTION,
|
||||
);
|
||||
|
||||
//pages for using the study group functionality
|
||||
$items['admin/booking/studygroups'] = array(
|
||||
'title' => 'View Study Groups',
|
||||
'description' => 'View Study Group memberships',
|
||||
@@ -362,23 +398,7 @@ function booking_menu() {
|
||||
'type' => MENU_NORMAL_ITEM,
|
||||
);
|
||||
|
||||
$items['admin/booking/studygroups/add'] = array(
|
||||
'title' => 'Add Study Group Definition',
|
||||
'description' => 'Add Study Group Definition',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_studygroups_define_form', true),
|
||||
'access arguments' => array("edit study groups"),
|
||||
'type' => MENU_LOCAL_ACTION,
|
||||
);
|
||||
|
||||
$items['admin/booking/studygroups/%/edit'] = array(
|
||||
'title' => 'Edit Study Group Definition',
|
||||
'description' => 'Edit Study Group Definition',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_studygroups_define_form', false, 3),
|
||||
'access arguments' => array('edit study groups'),
|
||||
//'type' => MENU_NORMAL_ITEM,
|
||||
);
|
||||
|
||||
$items['admin/booking/studygroups/%/view'] = array(
|
||||
'title' => 'View Study Group',
|
||||
@@ -424,17 +444,7 @@ function booking_menu() {
|
||||
'access arguments' => array('edit study groups'),
|
||||
//'type' => MENU_LOCAL_ACTION,
|
||||
);
|
||||
|
||||
$items['admin/booking/studygroups/colours'] = array(
|
||||
'title' => 'Process Reading Group Colours',
|
||||
'description' => 'Update the reading group colour based on the studygroup id',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_studygroups_process_colours'),
|
||||
'access arguments' => array('edit study groups'),
|
||||
'type' => MENU_LOCAL_ACTION,
|
||||
);
|
||||
|
||||
|
||||
|
||||
$items['admin/booking/%/edit-studygroup-membership'] = array(
|
||||
'title' => 'Edit Study Group Allocation',
|
||||
'description' => 'Manually Update Study Group memberships',
|
||||
|
Reference in New Issue
Block a user