From 673ba97ea9ded45a26af35be39b3b7b02f3c90fc Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 26 May 2016 12:11:55 +1000 Subject: [PATCH] test default value --- booking.emails.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/booking.emails.inc b/booking.emails.inc index 05f7213..6e7a6f1 100644 --- a/booking.emails.inc +++ b/booking.emails.inc @@ -127,7 +127,7 @@ function booking_manual_email() '#multiple' => TRUE, '#header' => $header, '#options' => _booking_manual_email_generate_options(), - //'#default_value' => $values, + '#default_value' => array("1812" => TRUE, "1813" => FALSE), '#empty' => t('No attendees found.'), '#attributes' => array('id' => 'sort-table'), '#prefix' => '
', @@ -258,14 +258,14 @@ function _booking_manual_email_selecttype_dropdown_callback($form, &$form_state) '#multiple' => TRUE, '#header' => $header, '#options' => $options, - //'#default_value' => $values, + '#default_value' => $new_default_values, '#empty' => t('No attendees found.'), '#attributes' => array('id' => 'sort-table'), '#prefix' => '
', '#suffix' => '
', ); watchdog('booking_debug', "
Manual email new form table\n@info
", array('@info' => print_r( $form['table'], true))); - $form['table']['#default_value'] = $new_default_values; + //$form['table']['#default_value'] = $new_default_values; $form['table'] = form_process_tableselect($form['table']); return $form['table'];