initial work on variety session report
This commit is contained in:
@@ -133,6 +133,12 @@ function booking_permission() {
|
||||
'edit room allocations' => array(
|
||||
'title' => t('Edit Room Allocations'),
|
||||
),
|
||||
'view variety sessions' => array(
|
||||
'title' => t('View Variety Sessions'),
|
||||
),
|
||||
'edit variety sessions' => array(
|
||||
'title' => t('Edit Variety Sessions'),
|
||||
),
|
||||
'create_travel_forms' => array(
|
||||
'title' => t('Create a new travel form entry'),
|
||||
),
|
||||
@@ -367,8 +373,7 @@ function booking_menu() {
|
||||
|
||||
//show flight info report only if we have passport info enabled
|
||||
//now deprecated
|
||||
if (variable_get('booking_enable_passport', 0) == 1)
|
||||
{
|
||||
if (variable_get('booking_enable_passport', 0) == 1) {
|
||||
$items['admin/booking/flights'] = array(
|
||||
'title' => 'Booking View Flights',
|
||||
'description' => 'View Internal Flight Bookings',
|
||||
@@ -378,17 +383,7 @@ function booking_menu() {
|
||||
);
|
||||
}
|
||||
|
||||
if (variable_get('booking_enable_variety_sessions', 0) == 1)
|
||||
{
|
||||
$items['admin/config/booking/variety'] = array(
|
||||
'title' => 'Booking module variety sessions',
|
||||
'description' => 'Configure variety sessions for the Booking module',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_variety_admin'),
|
||||
'access arguments' => array('administer site configuration'),
|
||||
//'type' => MENU_LOCAL_TASK,
|
||||
);
|
||||
|
||||
if (variable_get('booking_enable_variety_sessions', 0) == 1) {
|
||||
$items['variety'] = array(
|
||||
'title' => $bookingTitle . ' Variety Sessions',
|
||||
'page callback' => 'drupal_get_form',
|
||||
@@ -396,23 +391,40 @@ function booking_menu() {
|
||||
'access arguments' => array('access booking form'),
|
||||
'type' => MENU_NORMAL_ITEM,
|
||||
);
|
||||
|
||||
//configure variety sessions
|
||||
|
||||
$items['admin/config/booking/variety'] = array(
|
||||
'title' => 'Booking module variety sessions',
|
||||
'description' => 'Configure variety sessions for the Booking module',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_variety_admin'),
|
||||
'access arguments' => array('edit variety sessions'),
|
||||
'type' => MENU_NORMAL_ITEM,
|
||||
);
|
||||
|
||||
$items['admin/config/booking/variety/create'] = array(
|
||||
'title' => 'Add New Variety Session Timeslot',
|
||||
'description' => 'Add variety session timeslot for the Booking module',
|
||||
'page callback' => 'drupal_get_form',
|
||||
//'page arguments' => array('booking_price_create'),
|
||||
'page arguments' => array('booking_variety_timeslot_form', true),
|
||||
'access arguments' => array('access administration pages'),
|
||||
'access arguments' => array('edit variety sessions'),
|
||||
'type' => MENU_LOCAL_ACTION,
|
||||
);
|
||||
|
||||
$items['admin/config/booking/variety/report'] = array(
|
||||
'title' => 'View Variety Session Registrations',
|
||||
'description' => 'View Variety Session Registrations for the Booking module',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_variety_sessions_view_summary', true),
|
||||
'access arguments' => array('view variety sessions'),
|
||||
'type' => MENU_LOCAL_ACTION,
|
||||
);
|
||||
|
||||
$items['admin/config/booking/variety/%/edit'] = array(
|
||||
'title' => 'Edit Variety Session Timeslot',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_variety_timeslot_form', false, 4),
|
||||
'access arguments' => array('access administration pages'),
|
||||
'access arguments' => array('edit variety sessions'),
|
||||
'type' => MENU_CALLBACK,
|
||||
);
|
||||
|
||||
@@ -420,7 +432,7 @@ function booking_menu() {
|
||||
'title' => 'Variety Session CSV',
|
||||
'description' => 'CSV Report of Variety Session Timeslot',
|
||||
'page callback' => 'booking_varietysessions_csv_report',
|
||||
'access arguments' => array('access administration pages'),
|
||||
'access arguments' => array('view variety sessions'),
|
||||
'page arguments' => array(4),
|
||||
//'type' => MENU_CALLBACK,
|
||||
);
|
||||
@@ -430,7 +442,7 @@ function booking_menu() {
|
||||
'description' => 'List variety sessions for the specified timeslot',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_variety_list_session_form', 4),
|
||||
'access arguments' => array('access administration pages'),
|
||||
'access arguments' => array('view variety sessions'),
|
||||
'type' => MENU_CALLBACK,
|
||||
);
|
||||
|
||||
@@ -439,7 +451,7 @@ function booking_menu() {
|
||||
'description' => 'Add variety session to the specified timeslot',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_variety_create_session_form', TRUE, 4),
|
||||
'access arguments' => array('access administration pages'),
|
||||
'access arguments' => array('edit variety sessions'),
|
||||
'type' => MENU_CALLBACK,
|
||||
);
|
||||
|
||||
@@ -448,7 +460,7 @@ function booking_menu() {
|
||||
'description' => 'Edit variety session for the specified timeslot',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_variety_create_session_form', FALSE, 4, 6),
|
||||
'access arguments' => array('access administration pages'),
|
||||
'access arguments' => array('edit variety sessions'),
|
||||
'type' => MENU_CALLBACK,
|
||||
);
|
||||
}
|
||||
@@ -459,8 +471,8 @@ function booking_menu() {
|
||||
$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'),
|
||||
'page callback' => 'booking_studygroups_admin',
|
||||
'access arguments' => array('administer site configuration'),
|
||||
'type' => MENU_NORMAL_ITEM,
|
||||
);
|
||||
|
||||
@@ -495,8 +507,8 @@ function booking_menu() {
|
||||
$items['admin/booking/studygroups'] = array(
|
||||
'title' => 'View Study Groups',
|
||||
'description' => 'View Study Group memberships',
|
||||
'page callback' => 'booking_studygroups_view_summary',
|
||||
'access arguments' => array("view study groups"),
|
||||
'page callback' => 'booking_studygroups_view_summary',
|
||||
'access arguments' => array("view study groups"),
|
||||
'type' => MENU_NORMAL_ITEM,
|
||||
);
|
||||
|
||||
@@ -505,16 +517,16 @@ function booking_menu() {
|
||||
$items['admin/booking/studygroups/report/leadershelpers'] = array(
|
||||
'title' => 'View Studygroup Leaders and Helpers',
|
||||
'description' => 'View Studygroup Leaders and Helpers',
|
||||
'page callback' => 'booking_studygroups_leadhelp_view_summary',
|
||||
'access arguments' => array("view study groups"),
|
||||
'page callback' => 'booking_studygroups_leadhelp_view_summary',
|
||||
'access arguments' => array("view study groups"),
|
||||
'type' => MENU_LOCAL_ACTION,
|
||||
);
|
||||
|
||||
$items['admin/booking/studygroups/calculateleaders'] = array(
|
||||
'title' => 'Calculate Study Group Leaders',
|
||||
'description' => 'Calculate Study Group Leaders and Helpers',
|
||||
'page callback' => 'booking_studygroups_leaders_calculate',
|
||||
'access arguments' => array("edit study groups"),
|
||||
'page callback' => 'booking_studygroups_leaders_calculate',
|
||||
'access arguments' => array("edit study groups"),
|
||||
//'type' => MENU_NORMAL_ITEM,
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user