You are here

function theme_advuser_filters in Advanced User 5

Same name and namespace in other branches
  1. 5.2 advuser_filters.inc \theme_advuser_filters()
  2. 6.2 advuser_filters.inc \theme_advuser_filters()
1 theme call to theme_advuser_filters()
advuser_admin_filter_form in ./advuser.module

File

./advuser.module, line 616

Code

function theme_advuser_filters(&$form) {
  $output .= '<ul>';
  if (sizeof($form['current'])) {
    foreach (element_children($form['current']) as $key) {
      $output .= '<li>' . drupal_render($form['current'][$key]) . '</li>';
    }
  }
  $output .= '<li><dl class="multiselect">' . (sizeof($form['current']) ? '<dt><em>' . t('and/or') . '</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="advuser-admin-buttons">' . drupal_render($form['buttons']) . '</div>';
  $output .= '</li></ul><br class="clear" />';
  return $output;
}