You are here

function theme_biblio_filters in Bibliography Module 6.2

Same name and namespace in other branches
  1. 5 biblio.module \theme_biblio_filters()
  2. 6 biblio_theme.inc \theme_biblio_filters()
  3. 7 includes/biblio_theme.inc \theme_biblio_filters()
  4. 7.2 includes/biblio.theme.inc \theme_biblio_filters()

Parameters

$form:

See also

biblio_filters()

1 theme call to theme_biblio_filters()
biblio_form_filter in includes/biblio.pages.inc
Form constructor for a biblio content filter.

File

includes/biblio_theme.inc, line 922

Code

function theme_biblio_filters($form) {
  $output = '';
  if (sizeof($form['current'])) {
    $output .= '<ul>';
    foreach (element_children($form['current']) as $key) {
      $output .= '<li>' . drupal_render($form['current'][$key]) . '</li>';
    }
    $output .= '</ul>';
  }
  $output .= '<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="node-buttons">' . drupal_render($form['buttons']) . '</div>';
  $output .= '<br class="clear" />';
  return $output;
}