function tfa_test_tfa_context_alter in Two-factor Authentication (TFA) 7.2
Implements hook_tfa_context_alter().
File
- tests/
tfa_test.module, line 190 - A mock module for testing TFA.
Code
function tfa_test_tfa_context_alter(&$context) {
if (variable_get('tfa_test_context_alter', FALSE) !== FALSE) {
// Set validate plugin.
$context['plugins']['validate'] = variable_get('tfa_test_context_alter', '');
}
}