function theme_exposed_filters

Returns HTML for an exposed filter form.


$variables: An associative array containing:

  • form: An associative array containing the structure of the form.

Return value

A string containing an HTML-formatted form.

Related topics

2 theme calls to theme_exposed_filters()
node_filter_form in drupal/modules/node/
Returns the node administration filters form array to node_admin_content().
user_filter_form in drupal/modules/user/
Form builder; Return form for user administration filters.


drupal/modules/system/system.module, line 4049
Configuration system that lets administrators modify the workings of the site.


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(
  $output .= drupal_render_children($form);
  return '<div class="exposed-filters">' . $output . '</div>';