From a1b6ebc38176cd526b8ca701d03a6227a9681834 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 26 May 2016 22:55:43 +1000 Subject: [PATCH] change manual email page to a form --- booking.emails.inc | 4 ++-- booking.module | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/booking.emails.inc b/booking.emails.inc index 2daea6b..4720385 100644 --- a/booking.emails.inc +++ b/booking.emails.inc @@ -1,6 +1,6 @@ 'ajax', '#commands' => $commands); } -function booking_manual_email_submit($form, &$form_state) { +function booking_manual_email_form_submit($form, &$form_state) { $counter = 0; $update_messages = array(); $checkboxes = $form_state['values']['table']; //$values['booking_price_active']; diff --git a/booking.module b/booking.module index 44965d6..1d08b58 100644 --- a/booking.module +++ b/booking.module @@ -299,8 +299,10 @@ function booking_menu() { $items['admin/booking/manual-email/%/select'] = array( 'title' => 'Manually Email People Test', 'description' => 'Send manual email to registered people with preselected values', - 'page callback' => 'booking_manual_email', - 'page arguments' => array(3), + 'page callback' => 'drupal_get_form', + 'page arguments' => array('booking_manual_email_form', 3), + //'page callback' => 'booking_manual_email', + //'page arguments' => array(3), 'access arguments' => array('access administration pages'), //'type' => MENU_NORMAL_ITEM, );