node_forms

modules/node/node.module, line 3103

Versions
5 – 7
node_forms()

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

Code

<?php
function node_forms() {
  foreach (array_keys(node_get_types()) as $type) {
    $forms[$type .'_node_form']['callback'] = 'node_form';
  }
  return $forms;
}
?>
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.