function tfa_menu in Two-factor Authentication (TFA) 6
Same name and namespace in other branches
- 7.2 tfa.module \tfa_menu()
- 7 tfa.module \tfa_menu()
Implements hook_menu().
File
- ./
tfa.module, line 10 - Two-factor authentication for Drupal.
Code
function tfa_menu() {
$items['system/tfa/%/%'] = array(
'title' => 'Complete authentication',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'tfa_code_form',
2,
3,
),
'access callback' => 'tfa_entry_access',
'access arguments' => array(
2,
3,
),
'type' => MENU_CALLBACK,
'file' => 'tfa.pages.inc',
);
$items['system/tfa-denied'] = array(
'title' => 'TFA Denied',
'page callback' => 'tfa_denied',
'access callback' => 'user_is_anonymous',
'type' => MENU_CALLBACK,
'file' => 'tfa.pages.inc',
);
$items['admin/settings/tfa'] = array(
'title' => 'Two-factor Authentication',
'description' => 'TFA process settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'tfa_admin_settings',
),
'access arguments' => array(
'admin tfa settings',
),
'file' => 'tfa.pages.inc',
);
return $items;
}