size to maxlength
This commit is contained in:
@@ -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', "<pre>Autocomplete checking for ecclesia matching:\n@info</pre>", array('@info' => print_r($sanitised_string, true)));
|
||||
//watchdog('booking_debug', "<pre>Autocomplete checking for ecclesia matching:\n@info</pre>", 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 : '',
|
||||
);
|
||||
|
Reference in New Issue
Block a user