You are here

function theme_ad_filters in Advertisement 5.2

Same name and namespace in other branches
  1. 5 ad.module \theme_ad_filters()
  2. 6.3 ad.admin.inc \theme_ad_filters()
  3. 6 ad.admin.inc \theme_ad_filters()
  4. 6.2 ad.admin.inc \theme_ad_filters()
  5. 7 ad.admin.inc \theme_ad_filters()

Theme ad administration filter selector.

1 theme call to theme_ad_filters()
ad_filter_form in ./ad.module
Return form for advertisement administration filters.

File

./ad.module, line 1624
An advertising system for Drupal powered websites.

Code

function theme_ad_filters($form) {
  $output .= '<ul class="clear-block">';
  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') . '</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="ad-admin-buttons">' . drupal_render($form['buttons']) . '</div>';
  $output .= '</li></ul>';
  return $output;
}