summaryrefslogtreecommitdiff
path: root/modules/system/system.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/system.module')
-rw-r--r--modules/system/system.module29
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() {