node_forms

  1. drupal
    1. 5
    2. 6
    3. 7
    4. 8
Versions
5 – 8 node_forms()

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

Code

modules/node/node.module, line 3588

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