function theme_secondary_exposed_elements in Better Exposed Filters 8.3
Same name and namespace in other branches
- 7.3 better_exposed_filters.theme \theme_secondary_exposed_elements()
Themes some exposed form elements in a details element.
Parameters
array $vars: An array of arrays, the 'element' item holds the properties of the element.
Return value
string HTML to render the form element.
File
- ./
better_exposed_filters.theme, line 475 - Provides theming functions to display exposed forms using different interfaces.
Code
function theme_secondary_exposed_elements($vars) {
$element = $vars['element'];
// TODO: put HTML in a template
$output = '<div class="bef-secondary-options">';
foreach (element_children($element) as $id) {
$output .= drupal_render($element[$id]);
}
$output .= '</div>';
return $output;
}