Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function node_forms

Implements hook_forms().

All node forms share the same form handler.

File

modules/node/node.module, line 3781

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.