node_form_validate

Versions
4.7 – 5
node_form_validate($form_id, $form_values, $form)
6 – 7
node_form_validate($form, &$form_state)

Code

modules/node/node.pages.inc, line 73

<?php
function node_form_validate($form, &$form_state) {
  $node = (object)$form_state['values'];
  node_validate($node, $form);

  // Field validation. Requires access to $form_state, so this cannot be
  // done in node_validate() as it currently exists.
  field_attach_form_validate('node', $node, $form, $form_state);
}
?>
Login or register to post comments
 
 

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.