diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-09-17 14:53:22 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-09-17 14:53:22 +0000 |
commit | 1d9f387c7c80969a0f3415be3187408b6fbdd1bf (patch) | |
tree | 590b9723e4cda60786be524677786e59e0a84cb0 /modules/system/system.module | |
parent | faf272e9060949adacb8f5d02d6e1093c3f3c7ac (diff) | |
download | brdo-1d9f387c7c80969a0f3415be3187408b6fbdd1bf.tar.gz brdo-1d9f387c7c80969a0f3415be3187408b6fbdd1bf.tar.bz2 |
- Patch #732914 by Jacine, sun, reglogge, cosmicdreams: improve the markup/CSS for content and user filter forms.
Diffstat (limited to 'modules/system/system.module')
-rw-r--r-- | modules/system/system.module | 29 |
1 files changed, 29 insertions, 0 deletions
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 @@ -3770,6 +3770,35 @@ function theme_system_settings_form($variables) { } /** + * 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 '<div class="exposed-filters">' . $output . '</div>'; +} + +/** * Implements hook_admin_paths(). */ function system_admin_paths() { |