theme_filter_admin_order

Versions
4.7 – 6
theme_filter_admin_order($form)
7
theme_filter_admin_order($variables)

Theme filter order configuration form.

Code

modules/filter.module, line 555

<?php
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;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.