function theme_ad_filters in Advertisement 7
Same name and namespace in other branches
- 5.2 ad.module \theme_ad_filters()
- 5 ad.module \theme_ad_filters()
- 6.3 ad.admin.inc \theme_ad_filters()
- 6 ad.admin.inc \theme_ad_filters()
- 6.2 ad.admin.inc \theme_ad_filters()
Theme ad administration filter selector.
1 theme call to theme_ad_filters()
- ad_filter_form in ./
ad.admin.inc - Return form for advertisement administration filters.
File
- ./
ad.admin.inc, line 370 - Advertisement admin pages and functions.
Code
function theme_ad_filters($form) {
$output = '<ul class="clear-block">';
if (isset($form['current']) && sizeof($form['current'])) {
foreach (element_children($form['current']) as $key) {
$output .= '<li>' . drupal_render($form['current'][$key]) . '</li>';
}
}
$output .= '<li><dl class="multiselect">' . (isset($form['current']) && sizeof($form['current']) ? '<dt><em>' . t('and') . '</em> ' . t('where') . '</dt>' : '') . '<dd class="a">';
foreach (element_children($form['filter']) as $key) {
$output .= drupal_render($form['filter'][$key]);
}
$output .= '</dd>';
$output .= '<dt>' . t('is') . '</dt><dd class="b">';
if (isset($form['status'])) {
foreach (element_children($form['status']) as $key) {
$output .= drupal_render($form['status'][$key]);
}
}
$output .= '</dd>';
$output .= '</dl>';
$output .= '<div class="container-inline" id="ad-admin-buttons">' . drupal_render($form['buttons']) . '</div>';
$output .= '</li></ul>';
return $output;
}