From fb17591d938f347f27d2184eed2ae170e2f053dd Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 9 Sep 2010 21:01:38 +0000 Subject: - Patch #827086 by mcarbone: date format screen dies with a PDO error when the format is longer than 100 characters. --- modules/system/system.admin.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/system') diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index 9839b7554..8dd3fbaba 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -2875,6 +2875,7 @@ function system_configure_date_formats_form($form, &$form_state, $dfid = 0) { $form['date_format'] = array( '#type' => 'textfield', '#title' => t('Format string'), + '#maxlength' => 100, '#description' => t('A user-defined date format. See the PHP manual for available options.', array('@url' => 'http://php.net/manual/function.date.php')), '#default_value' => ($dfid ? $format->format : ''), '#field_suffix' => ' ' . $now . '', -- cgit v1.2.3