diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-12-14 13:56:54 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-12-14 13:56:54 +0000 |
commit | d40ce217118e5541980224aaae55cafb336bce83 (patch) | |
tree | fa94fa8f04fe16e74ac5f7d339b0b561427a6c31 /modules/filter.module | |
parent | d4fe9203ed3b1ea8255aa4bdc4d7578559dd9f30 (diff) | |
download | brdo-d40ce217118e5541980224aaae55cafb336bce83.tar.gz brdo-d40ce217118e5541980224aaae55cafb336bce83.tar.bz2 |
- Patch #40975 by chx: filter_format no longer supports multiple filtered areas.
Diffstat (limited to 'modules/filter.module')
-rw-r--r-- | modules/filter.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/filter.module b/modules/filter.module index 550d053a2..173c0b253 100644 --- a/modules/filter.module +++ b/modules/filter.module @@ -750,7 +750,7 @@ function check_markup($text, $format = FILTER_FORMAT_DEFAULT, $check = TRUE) { * @return * HTML for the form element. */ -function filter_form($value = FILTER_FORMAT_DEFAULT, $weight = -16) { +function filter_form($value = FILTER_FORMAT_DEFAULT, $weight = -16, $parents = array('format')) { if ($value == FILTER_FORMAT_DEFAULT) { $value = variable_get('filter_default_format', 1); } @@ -759,7 +759,7 @@ function filter_form($value = FILTER_FORMAT_DEFAULT, $weight = -16) { $extra = l(t('More information about formatting options'), 'filter/tips'); if (count($formats) > 1) { - $form['format'] = array( + $form = array( '#type' => 'fieldset', '#title' => t('Input format'), '#collapsible' => TRUE, @@ -768,12 +768,12 @@ function filter_form($value = FILTER_FORMAT_DEFAULT, $weight = -16) { ); // Multiple formats available: display radio buttons with tips. foreach ($formats as $format) { - $form['format'][$format->format] = array( + $form[$format->format] = array( '#type' => 'radio', '#title' => $format->name, '#default_value' => $value, '#return_value' => $format->format, - '#parents' => array('format'), + '#parents' => $parents, '#description' => theme('filter_tips', _filter_tips($format->format, false)), '#validate' => array('filter_form_validate' => array()) ); |