Same name and namespace in other branches
  1. 6.x-1.x node_example/node_example.module \node_example_form()

Implements hook_form().

Drupal needs for us to provide a form that lets the user add content. This is the form that the user will see if they go to node/add/node-example.

You can get fancy with this form, or you can just punt and return the default form that node_content will provide.

Related topics

File

node_example/node_example.module, line 154
Module file for Node Example module.

Code

function node_example_form($node, $form_state) {
  return node_content_form($node, $form_state);
}