function node_forms
node_forms()
Implements hook_forms().
All node forms share the same form handler.
File
- modules/node/node.module, line 3779
- The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.
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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!node!node.module/function/node_forms/7.x