From 7bdd8b3718392c9ec7153b6ae01dcc7fa653ebfb Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 2 Dec 2005 15:46:46 +0000 Subject: - Patch #39605 by Alex: remove form_filter type. --- modules/filter.module | 15 +-------------- modules/filter/filter.module | 15 +-------------- 2 files changed, 2 insertions(+), 28 deletions(-) (limited to 'modules') 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 .= '
'; - $output .= ''; - $output .= $element['#description']; - $output .= '
'; - return $output; -} - function filter_form_validate($element) { static $validated; if ($validated) { diff --git a/modules/filter/filter.module b/modules/filter/filter.module index 3a740595f..c22eb7bbe 100644 --- a/modules/filter/filter.module +++ b/modules/filter/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 .= '
'; - $output .= ''; - $output .= $element['#description']; - $output .= '
'; - return $output; -} - function filter_form_validate($element) { static $validated; if ($validated) { -- cgit v1.2.3