From 43d69907e0258bab1684895f53d7a20b8cde0fd9 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Sat, 5 May 2018 13:36:53 +1000 Subject: [PATCH] fix callback --- booking.module | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/booking.module b/booking.module index 217135d..8bcea1f 100644 --- a/booking.module +++ b/booking.module @@ -250,20 +250,20 @@ function booking_menu() { ); //pages for attendees to fill out information - $items['booking'] = array( + $items['booking'] = array( 'title' => $bookingTitle . ' Booking Form', 'page callback' => 'booking_register_page', 'access arguments' => array('access booking form'), 'type' => MENU_NORMAL_ITEM, ); - $items['bookingfinal'] = array( + $items['bookingfinal'] = array( 'title' => $bookingTitle . ' Registration Completed', 'page callback' => 'booking_payment_completed_page', 'access arguments' => array('access booking form'), 'type' => MENU_CALLBACK, ); - $items['confirm/%'] = array( + $items['confirm/%'] = array( 'title' => 'Booking Payment', 'page callback' => 'booking_confirm_page', 'page arguments' => array(3), //include the temporary id @@ -271,7 +271,7 @@ function booking_menu() { 'type' => MENU_CALLBACK, ); - $items['balance/%'] = array( + $items['balance/%'] = array( 'title' => 'Registration Final Payment', 'page callback' => 'booking_balance_page', 'page arguments' => array(3), //include the temporary id @@ -279,7 +279,7 @@ function booking_menu() { 'type' => MENU_CALLBACK, ); - $items['partpay/%/%'] = array( + $items['partpay/%/%'] = array( 'title' => 'Registration Partial Payment', 'page callback' => 'booking_partial_balance_page', 'page arguments' => array(4), //include the temporary id and the amount @@ -287,19 +287,19 @@ function booking_menu() { 'type' => MENU_CALLBACK, ); - $items['travel/%'] = array( - 'title' => 'Travel Details Page', - 'page callback' => 'booking_travel_page', - 'page arguments' => array(3), //include the temporary id - 'access arguments' => array('access booking form'), - 'type' => MENU_SUGGESTED_ITEM, + $items['travel/%'] = array( + 'title' => 'Travel Details Page', + 'page callback' => 'booking_travel_page', + 'page arguments' => array(3), //include the temporary id + 'access arguments' => array('access booking form'), + 'type' => MENU_SUGGESTED_ITEM, ); $items['coming'] = array( - 'title' => "Who's Coming?", - 'page callback' => 'booking_coming_page', - 'access arguments' => array("access coming list"), - 'type' => MENU_NORMAL_ITEM, + 'title' => "Who's Coming?", + 'page callback' => 'booking_coming_page', + 'access arguments' => array("access coming list"), + 'type' => MENU_NORMAL_ITEM, ); $items['waitinglist'] = array( @@ -341,7 +341,7 @@ function booking_menu() { 'page arguments' => array('booking_manual_email_form'), //'page callback' => 'drupal_get_form', //'page arguments' => array('booking_manual_email'), - 'access arguments' => array('access administration pages'), + 'access arguments' => array('access administration pages'), 'type' => MENU_NORMAL_ITEM, ); @@ -414,8 +414,7 @@ function booking_menu() { $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), + 'page callback' => 'booking_variety_sessions_view_summary', 'access arguments' => array('view variety sessions'), 'type' => MENU_LOCAL_ACTION, );