function tfa_test_menu in Two-factor Authentication (TFA) 7.2
Implements hook_menu().
File
- tests/
tfa_test.module, line 11 - A mock module for testing TFA.
Code
function tfa_test_menu() {
$items = array();
// Add local task for setting up test send plugin.
$items['user/%user/tfa'] = array(
'title' => 'TFA Setup',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'tfa_test_setup_form',
1,
),
'access callback' => 'user_edit_access',
'access arguments' => array(
1,
),
'type' => MENU_LOCAL_TASK,
);
return $items;
}