1 node_type_example.module node_type_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 users 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 node_content_form() provides.

Related topics

File

modules/examples/node_type_example/node_type_example.module, line 111
Hook implementations for the Node Type Example module.

Code

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