Community Documentation

node_forms

5 node.module node_forms()
6 node.module node_forms()
7 node.module node_forms()
8 node.module node_forms()

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

File

modules/node/node.module, line 3103
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

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