From 1d9f387c7c80969a0f3415be3187408b6fbdd1bf Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 17 Sep 2010 14:53:22 +0000 Subject: - Patch #732914 by Jacine, sun, reglogge, cosmicdreams: improve the markup/CSS for content and user filter forms. --- modules/system/system.module | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'modules/system/system.module') diff --git a/modules/system/system.module b/modules/system/system.module index 21b2f79ad..9d0930476 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -3769,6 +3769,35 @@ function theme_system_settings_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[] = drupal_render($form['current'][$key]); + } + $output .= theme('item_list', array('items' => $items, 'attributes' => array('class' => array('clearfix', 'current-filters')))); + } + + $output .= drupal_render_children($form); + + return '
' . $output . '
'; +} + /** * Implements hook_admin_paths(). */ -- cgit v1.2.3