diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-12-19 14:30:53 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-12-19 14:30:53 +0000 |
commit | eb412f7c7e15a8bd4e572d28e12ecaab59a7c0f7 (patch) | |
tree | 1dc312c8a2cc1831c8ba55750b7c57ddc1d7820b /modules/filter.module | |
parent | 0212f66ff1682ab699830d7571a5ff5ee85aa725 (diff) | |
download | brdo-eb412f7c7e15a8bd4e572d28e12ecaab59a7c0f7.tar.gz brdo-eb412f7c7e15a8bd4e572d28e12ecaab59a7c0f7.tar.bz2 |
- Patch #39179 by chx: improved validation of forms.
Diffstat (limited to 'modules/filter.module')
-rw-r--r-- | modules/filter.module | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/modules/filter.module b/modules/filter.module index 88cb98801..b81039879 100644 --- a/modules/filter.module +++ b/modules/filter.module @@ -775,7 +775,6 @@ function filter_form($value = FILTER_FORMAT_DEFAULT, $weight = 0, $parents = arr '#return_value' => $format->format, '#parents' => $parents, '#description' => theme('filter_tips', _filter_tips($format->format, false)), - '#validate' => array('filter_form_validate' => array()) ); } } @@ -793,18 +792,6 @@ function filter_form($value = FILTER_FORMAT_DEFAULT, $weight = 0, $parents = arr return $form; } -function filter_form_validate($element) { - static $validated; - if ($validated) { - return; - } - $validated = 1; - $formats = filter_formats(); - if (!isset($formats[$element['#value']])) { - form_set_error($element['#parents'][0], t('The supplied input format is invalid.')); - } -} - /** * Returns true if the user is allowed to access this format. */ |