function theme_node_search_admin in Drupal 5
Same name and namespace in other branches
- 4 modules/node.module \theme_node_search_admin()
- 6 modules/node/node.module \theme_node_search_admin()
- 7 modules/node/node.module \theme_node_search_admin()
File
- modules/
node/ node.module, line 1015 - The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.
Code
function theme_node_search_admin($form) {
$output = drupal_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[] = drupal_render($form['factors'][$key]);
$rows[] = $row;
}
$output .= theme('table', $header, $rows);
$output .= drupal_render($form);
return $output;
}