1 node.module node_forms()

Implements hook_forms().

All node forms share the same form handler.

File

core/modules/node/node.module, line 3514
The core module that allows content to be submitted to the site.

Code

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