function _drupal_invalid_token_set_form_error
Helper function to call form_set_error() if there is a token error.
Related topics
2 calls to _drupal_invalid_token_set_form_error()
- drupal_validate_form in includes/
form.inc - Validates user-submitted form data in the $form_state array.
- form_builder in includes/
form.inc - Builds and processes all elements in the structured form array.
File
-
includes/
form.inc, line 1137
Code
function _drupal_invalid_token_set_form_error() {
// Setting this error will cause the form to fail validation.
form_set_error('form_token', t('The form has become outdated. Press the back button, copy any unsaved work in the form, and then reload the page.'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.