You are here

function node_form in Drupal 4

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

Generate the node editing form.

2 calls to node_form()
node_add in modules/node.module
Present a node submission form or a set of links to such forms.
node_page in modules/node.module
Menu callback; dispatches control to the appropriate operation handler.

File

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

Code

function node_form($node) {
  $node = (object) $node;
  $form = node_form_array($node);
  return drupal_get_form($node->type . '_node_form', $form, 'node_form');
}