theme_exposed_filters
function theme_exposed_filters
theme_exposed_filters($variables)
Returns HTML for an exposed filter form.
Parameters
$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
File
- modules/system/system.module, line 4027
- Configuration system that lets administrators modify the workings of the site.
Code
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>'; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.module/function/theme_exposed_filters/7.x