function node_form_validate

Form validation handler for node_form().

See also

node_form()

node_form_submit()

1 string reference to 'node_form_validate'
node_form in modules/node/node.pages.inc
Form constructor for the node add/edit form.

File

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

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.