You are here

function theme_node_filters in Drupal 4

Same name and namespace in other branches
  1. 5 modules/node/node.module \theme_node_filters()
  2. 6 modules/node/node.admin.inc \theme_node_filters()

Theme node administraton filter selector.

1 theme call to theme_node_filters()
node_filter_form in modules/node.module
Return form for node administration filters.

File

modules/node.module, line 1054
The core that allows content to be submitted to the site.

Code

function theme_node_filters(&$form) {
  $output .= '<ul>';
  if (sizeof($form['current'])) {
    foreach (element_children($form['current']) as $key) {
      $output .= '<li>' . form_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 .= form_render($form['filter'][$key]);
  }
  $output .= '</dd>';
  $output .= '<dt>' . t('is') . '</dt>' . '<dd class="b">';
  foreach (element_children($form['status']) as $key) {
    $output .= form_render($form['status'][$key]);
  }
  $output .= '</dd>';
  $output .= '</dl>';
  $output .= '<div class="container-inline" id="node-admin-buttons">' . form_render($form['buttons']) . '</div>';
  $output .= '</li></ul><br class="clear" />';
  return $output;
}