theme_filter_admin_order

Definition

theme_filter_admin_order($form)
drupal/modules/filter.module, line 555

Description

Theme filter order configuration form.

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(form_render($form['names'][$id]), form_render($form['weights'][$id]));
    }
  }

  $output = theme('table', $header, $rows);
  $output .= form_render($form);

  return $output;
}