summaryrefslogtreecommitdiff
path: root/modules/filter.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-12-10 19:35:13 +0000
committerDries Buytaert <dries@buytaert.net>2005-12-10 19:35:13 +0000
commitfb9ff3baf91e6c8b54b71bdf74c8e709659f4728 (patch)
treeb64d09a6b7a76175c975fe646976abdb95c82790 /modules/filter.module
parent07ec1bc2076614dd960ecc7c9f92b238aa164983 (diff)
downloadbrdo-fb9ff3baf91e6c8b54b71bdf74c8e709659f4728.tar.gz
brdo-fb9ff3baf91e6c8b54b71bdf74c8e709659f4728.tar.bz2
- Patch #40628 by Jaza: added missing fieldset around filter options.
Diffstat (limited to 'modules/filter.module')
-rw-r--r--modules/filter.module8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/filter.module b/modules/filter.module
index 6f2221422..550d053a2 100644
--- a/modules/filter.module
+++ b/modules/filter.module
@@ -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 = array(
+ $form['format'] = array(
'#type' => 'fieldset',
'#title' => t('Input format'),
'#collapsible' => TRUE,
@@ -768,7 +768,7 @@ function filter_form($value = FILTER_FORMAT_DEFAULT, $weight = -16) {
);
// Multiple formats available: display radio buttons with tips.
foreach ($formats as $format) {
- $form[$format->format] = array(
+ $form['format'][$format->format] = array(
'#type' => 'radio',
'#title' => $format->name,
'#default_value' => $value,
@@ -782,9 +782,9 @@ function filter_form($value = FILTER_FORMAT_DEFAULT, $weight = -16) {
else {
// Only one format available: use a hidden form item and only show tips.
$format = array_shift($formats);
- $form[$format->name] = array('#type' => 'value', '#value' => $format->format);
+ $form['format'][$format->name] = array('#type' => 'value', '#value' => $format->format);
$tips = _filter_tips(variable_get('filter_default_format', 1), false);
- $form['guidelines'] = array(
+ $form['format']['guidelines'] = array(
'#type' => 'markup',
'#title' => t('Formatting guidelines'),
'#value' => theme('filter_tips', $tips, false, $extra),