function tfa_help in Two-factor Authentication (TFA) 7
Same name and namespace in other branches
- 8 tfa.module \tfa_help()
- 6 tfa.module \tfa_help()
- 7.2 tfa.module \tfa_help()
Implements hook_help().
File
- ./
tfa.module, line 147 - Two-factor authentication for Drupal.
Code
function tfa_help($path, $arg) {
switch ($path) {
case 'admin/help#tfa':
$output = '';
$output .= '<h3>' . t('Two-factor Authentication') . '</h3>';
$output .= '<p>' . t("TFA requires a communication channel to transfer the login code and an address to send to. By default, TFA will use the SMS Framework if installed. Add a user field to store phone numbers to enable TFA.") . '<p>';
$output .= '<p>' . t('<a href="!url">Read the TFA configuration documentation</a> on drupal.org.', array(
'!url' => url('http://drupal.org/node/1663240'),
)) . '</p>';
return $output;
case 'admin/config/people/tfa':
$output = '<p>' . t('For TFA to properly function you must select a communication channel for the TFA code. If using the SMS Framework create and select a user account field that contains the number to use. <a href="!url">Read the TFA configuration documentation</a> on drupal.org.', array(
'!url' => url('http://drupal.org/node/1663240'),
)) . '</p>';
$output .= '<p>' . t('Note, unless you choose the "Require TFA process" option users will <strong>only be required to follow the TFA process</strong> if they have an address setup for code delivery.') . '</p>';
return $output;
}
}