You are here

function theme_filter_admin_order in Drupal 5

Same name and namespace in other branches
  1. 4 modules/filter.module \theme_filter_admin_order()
  2. 6 modules/filter/filter.admin.inc \theme_filter_admin_order()

Theme filter order configuration form.

File

modules/filter/filter.module, line 560
Framework for handling filtering of content.

Code

function theme_filter_admin_order($form) {
  $header = array(
    t('Name'),
    t('Weight'),
  );
  $rows = array();
  foreach (element_children($form['names']) as $id) {

    // Don't take form control structures
    if (is_array($form['names'][$id])) {
      $rows[] = array(
        drupal_render($form['names'][$id]),
        drupal_render($form['weights'][$id]),
      );
    }
  }
  $output = theme('table', $header, $rows);
  $output .= drupal_render($form);
  return $output;
}