summaryrefslogtreecommitdiff
path: root/modules/filter.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-12-02 15:46:46 +0000
committerDries Buytaert <dries@buytaert.net>2005-12-02 15:46:46 +0000
commit7bdd8b3718392c9ec7153b6ae01dcc7fa653ebfb (patch)
tree2e282d784110e4c5203a9f41c7f33a913072a9a5 /modules/filter.module
parent272c6b95faf3bcf00e3486013b8a894d277cfaa0 (diff)
downloadbrdo-7bdd8b3718392c9ec7153b6ae01dcc7fa653ebfb.tar.gz
brdo-7bdd8b3718392c9ec7153b6ae01dcc7fa653ebfb.tar.bz2
- Patch #39605 by Alex: remove form_filter type.
Diffstat (limited to 'modules/filter.module')
-rw-r--r--modules/filter.module15
1 files changed, 1 insertions, 14 deletions
diff --git a/modules/filter.module b/modules/filter.module
index 3a740595f..c22eb7bbe 100644
--- a/modules/filter.module
+++ b/modules/filter.module
@@ -762,7 +762,7 @@ function filter_form($value = FILTER_FORMAT_DEFAULT) {
$form['format'] = array('#type' => 'fieldset', '#title' => t('Input format'), '#collapsible' => TRUE, '#collapsed' => TRUE, '#weight' => -16);
// Multiple formats available: display radio buttons with tips.
foreach ($formats as $format) {
- $form['format'][$format->format] = array('#type' => 'filter_format', '#title' => $format->name, '#default_value' => $value, '#return_value' => $format->format, '#parents' => array('format'), '#description' => theme('filter_tips', _filter_tips($format->format, false)), '#validate' => 'filter_form_validate');
+ $form['format'][$format->format] = array('#type' => 'radio', '#title' => $format->name, '#default_value' => $value, '#return_value' => $format->format, '#parents' => array('format'), '#description' => theme('filter_tips', _filter_tips($format->format, false)), '#validate' => 'filter_form_validate');
}
return $form;
}
@@ -776,19 +776,6 @@ function filter_form($value = FILTER_FORMAT_DEFAULT) {
}
}
-function filter_elements() {
- $type['filter_format'] = array('#input' => TRUE);
- return $type;
-}
-
-function theme_filter_format($element) {
- $output .= '<div>';
- $output .= '<label class="option"><input type="radio" class="form-radio" name="' . $element['#name'] . '" value="'. $element['#return_value'] .'"'. (($element['#default_value'] == $element['#return_value']) ? ' checked="checked"' : '') .' /> '. $element['#title'] .'</label>';
- $output .= $element['#description'];
- $output .= '</div>';
- return $output;
-}
-
function filter_form_validate($element) {
static $validated;
if ($validated) {