1 form.inc _backdrop_invalid_token_set_form_error()

Helper function to call form_set_error() if there is a token error.

Related topics

File

core/includes/form.inc, line 1157
Functions for form and batch generation and processing.

Code

function _backdrop_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.'));
}