function theme_node_form in Drupal 4
Same name and namespace in other branches
- 5 modules/node/node.module \theme_node_form()
- 6 modules/node/node.pages.inc \theme_node_form()
File
- modules/node.module, line 1751
- The core that allows content to be submitted to the site.
Code
function theme_node_form($form) {
$output = "\n<div class=\"node-form\">\n";
$admin = '';
if (isset($form['author'])) {
$admin .= " <div class=\"authored\">\n";
$admin .= form_render($form['author']);
$admin .= " </div>\n";
}
if (isset($form['options'])) {
$admin .= " <div class=\"options\">\n";
$admin .= form_render($form['options']);
$admin .= " </div>\n";
}
$buttons = form_render($form['preview']);
$buttons .= form_render($form['submit']);
$buttons .= isset($form['delete']) ? form_render($form['delete']) : '';
$output .= " <div class=\"standard\">\n";
$output .= form_render($form);
$output .= " </div>\n";
if (!empty($admin)) {
$output .= " <div class=\"admin\">\n";
$output .= $admin;
$output .= " </div>\n";
}
$output .= $buttons;
$output .= "</div>\n";
return $output;
}