1 form_test.module | form_test_validate_no_token($form, &$form_state) |
Form builder for testing submission of a form without a CSRF token.
File
- core/
modules/ simpletest/ tests/ form_test.module, line 550 - 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;
}