function theme_user_filters in Drupal 6
Same name and namespace in other branches
- 5 modules/user/user.module \theme_user_filters()
Theme user administration filter selector.
Related topics
1 theme call to theme_user_filters()
- user_filter_form in modules/
user/ user.admin.inc - Form builder; Return form for user administration filters.
File
- modules/
user/ user.admin.inc, line 1008 - Admin page callback file for the user module.
Code
function theme_user_filters($form) {
$output = '<ul class="clear-block">';
if (!empty($form['current'])) {
foreach (element_children($form['current']) as $key) {
$output .= '<li>' . drupal_render($form['current'][$key]) . '</li>';
}
}
$output .= '<li><dl class="multiselect">' . (!empty($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">';
foreach (element_children($form['status']) as $key) {
$output .= drupal_render($form['status'][$key]);
}
$output .= '</dd>';
$output .= '</dl>';
$output .= '<div class="container-inline" id="user-admin-buttons">' . drupal_render($form['buttons']) . '</div>';
$output .= '</li></ul>';
return $output;
}