function form_test_validate_no_token

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

Code

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

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