You are here

function theme_node_search_admin in Drupal 4

Same name and namespace in other branches
  1. 5 modules/node/node.module \theme_node_search_admin()
  2. 6 modules/node/node.module \theme_node_search_admin()
  3. 7 modules/node/node.module \theme_node_search_admin()

File

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

Code

function theme_node_search_admin($form) {
  $output = form_render($form['info']);
  $header = array(
    t('Factor'),
    t('Weight'),
  );
  foreach (element_children($form['factors']) as $key) {
    $row = array();
    $row[] = $form['factors'][$key]['#title'];
    unset($form['factors'][$key]['#title']);
    $row[] = form_render($form['factors'][$key]);
    $rows[] = $row;
  }
  $output .= theme('table', $header, $rows);
  $output .= form_render($form);
  return $output;
}