node_form_validate

5 node.module node_form_validate($form_id, $form_values, $form)
6 node.pages.inc node_form_validate($form, &$form_state)
7 node.pages.inc node_form_validate($form, &$form_state)
8 node.pages.inc node_form_validate($form, &$form_state)

1 string reference to 'node_form_validate'

File

modules/node/node.pages.inc, line 71
Page callbacks for adding, editing, deleting, and revisions management for content.

Code

function node_form_validate($form, &$form_state) {
  // $form_state['node'] contains the actual entity being edited, but we must
  // not update it with form values that have not yet been validated, so we
  // create a pseudo-entity to use during validation.
  $node = (object) $form_state['values'];
  node_validate($node, $form, $form_state);
  entity_form_field_validate('node', $form, $form_state);
}
Login or register to post comments