1 node_example.module node_example_form($node, $form_state)

Implements hook_form().

Backdrop 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


modules/examples/node_example/node_example.module, line 124
Module file for Node Example module.


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