summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/filter.module15
-rw-r--r--modules/filter/filter.module15
2 files changed, 2 insertions, 28 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) {
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 .= '<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) {