You are here

public function TfaBasicHelp::getForm in TFA Basic plugins 7

@copydoc TfaBasePlugin::getForm()

Overrides TfaValidationPluginInterface::getForm

File

includes/tfa_help.inc, line 15
class for TFA Basic

Class

TfaBasicHelp
Class TfaBasicHelp

Code

public function getForm(array $form, array &$form_state) {
  $default = t('Contact support to reset your access');
  $content = variable_get('tfa_basic_help_text', $default);
  $form['help'] = array(
    '#type' => 'markup',
    '#markup' => check_plain($content),
  );

  // Disallow login plugins from applying to this step.
  $form['#tfa_no_login'] = TRUE;
  return $form;
}