You are here

function form_test_validate_no_token in Drupal 7

Form builder for testing submission of a form without a CSRF token.

1 string reference to 'form_test_validate_no_token'
form_test_menu in modules/simpletest/tests/form_test.module
Implements hook_menu().

File

modules/simpletest/tests/form_test.module, line 467
Helper module for the form API tests.

Code

function form_test_validate_no_token($form, &$form_state) {
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => 'Save',
  );
  $form['#token'] = FALSE;
  return $form;
}