change manual email page to a form

This commit is contained in:
2016-05-26 22:55:43 +10:00
parent 369157fc9a
commit a1b6ebc381
2 changed files with 6 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
<?php
function booking_manual_email($input_option = "")
function booking_manual_email_form($form, &$form_state, $input_option = "")
{
global $event;
//see http://www.jaypan.com/blog/themeing-drupal-7-forms-tables-checkboxes-or-radios
@@ -398,7 +398,7 @@ function _booking_manual_email_selecttype_ajax_callback($form, &$form_state) {
return array('#type' => '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'];

View File

@@ -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,
);