public function TfaTestSend::getForm in Two-factor Authentication (TFA) 7.2
Get TFA process form from plugin.
Parameters
array $form: The form array structure.
array $form_state: The current form state array.
Return value
array Form API array.
Overrides TfaValidationPluginInterface::getForm
1 call to TfaTestSend::getForm()
- TfaTestSendSetup::getSetupForm in tests/
includes/ tfa_test.send.inc - Get setup form.
File
- tests/
includes/ tfa_test.send.inc, line 31 - Tests for the TfaSendPluginInterface.
Class
- TfaTestSend
- Class TfaTestSend.
Code
public function getForm(array $form, array &$form_state) {
$form['code'] = array(
'#type' => 'textfield',
'#title' => t('Enter sent code'),
'#required' => TRUE,
);
$form['actions']['login'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
);
$form['actions']['resend'] = array(
'#type' => 'submit',
'#value' => t('Resend'),
'#submit' => array(
'tfa_form_submit',
),
'#limit_validation_errors' => array(),
);
return $form;
}