5.x node.module node_forms()
6.x node.module node_forms()
7.x node.module node_forms()

Implementation of hook_forms(). All node forms share the same form handler


modules/node/node.module, line 2489
The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.


function node_forms() {
  $forms = array();
  if ($types = node_get_types()) {
    foreach (array_keys($types) as $type) {
      $forms[$type . '_node_form']['callback'] = 'node_form';
  return $forms;