function 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

Code

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