From 20a2984f49dd2cd4f23c9e4782cd37ff05ffd26d Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Tue, 17 Sep 2019 13:49:52 +1000 Subject: [PATCH] size to maxlength --- booking.regn_form.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/booking.regn_form.inc b/booking.regn_form.inc index c22b121..43dc5e3 100644 --- a/booking.regn_form.inc +++ b/booking.regn_form.inc @@ -72,7 +72,7 @@ function _booking_ecclesia_name_autocomplete($string) { $matches = array(); $sanitised_string = preg_replace("/[^a-zA-Z0-9\s\.']/", '', $string); $sanitised_string .= "%"; - watchdog('booking_debug', "
Autocomplete checking for ecclesia matching:\n@info
", array('@info' => print_r($sanitised_string, true))); + //watchdog('booking_debug', "
Autocomplete checking for ecclesia matching:\n@info
", array('@info' => print_r($sanitised_string, true))); $query = db_select('booking_person', 'p') ->fields('p', array('booking_ecclesia')) @@ -319,7 +319,7 @@ function booking_form($node, &$form_state, $inserting = FALSE) $form['your-details']['booking_ecclesia'] = array ( '#type' => 'textfield', '#title' => t('Ecclesia'), - '#size' => 100, + '#maxlength' => 100, '#autocomplete_path' => 'booking/ecclesia/autocomplete', '#value' => !empty($data->booking_ecclesia) ? $data->booking_ecclesia : '', );