You are here

function tfa_test_form_user_login_alter in Two-factor Authentication (TFA) 7.2

Implements hook_form_form_id_alter().

File

tests/tfa_test.module, line 54
A mock module for testing TFA.

Code

function tfa_test_form_user_login_alter(&$form, &$form_state) {
  if (variable_get('tfa_test_login_form_redirect', FALSE)) {
    array_unshift($form['#submit'], 'tfa_test_form_login_submit');
  }
}