Commit 2e928d56 authored by catch's avatar catch

Issue #2087239 by ellishettinga, lauriii, c4rl: Remove theme_exposed_filters().

parent 15fded0c
......@@ -2814,9 +2814,6 @@ function drupal_common_theme() {
'date' => array(
'render element' => 'element',
),
'exposed_filters' => array(
'render element' => 'form',
),
'checkboxes' => array(
'render element' => 'element',
),
......
......@@ -3118,40 +3118,6 @@ function theme_system_config_form($variables) {
return drupal_render_children($variables['form']);
}
/**
* Returns HTML for an exposed filter form.
*
* @param $variables
* An associative array containing:
* - form: An associative array containing the structure of the form.
*
* @return
* A string containing an HTML-formatted form.
*
* @ingroup themeable
*/
function theme_exposed_filters($variables) {
$form = $variables['form'];
$output = '';
if (isset($form['current'])) {
$items = array();
foreach (element_children($form['current']) as $key) {
$items[] = $form['current'][$key];
}
$item_list = array(
'#theme' => 'item_list',
'#items' => $items,
'#attributes' => array('class' => array('clearfix', 'current-filters')),
);
$output .= drupal_render($item_list);
}
$output .= drupal_render_children($form);
return '<div class="exposed-filters">' . $output . '</div>';
}
/**
* Implements hook_admin_paths().
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment