function tokenauth_menu in Token authentication 6
Same name and namespace in other branches
- 5 tokenauth.module \tokenauth_menu()
- 6.2 tokenauth.module \tokenauth_menu()
- 7 tokenauth.module \tokenauth_menu()
Implementation of hook_menu().
File
- ./
tokenauth.module, line 22
Code
function tokenauth_menu() {
$items['admin/settings/tokenauth'] = array(
'title' => t('Token authentication'),
'description' => t('Configure token behavior to allow users to authenticate per page-load via URL.'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'tokenauth_admin_settings',
),
'access arguments' => array(
'administer tokenauth',
),
'file' => 'tokenauth.pages.inc',
);
$items['admin/settings/tokenauth/reset'] = array(
'title' => t('Reset tokens'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'tokenauth_reset_confirm',
),
'access arguments' => array(
'administer tokenauth',
),
'file' => 'tokenauth.pages.inc',
'type' => MENU_CALLBACK,
);
$items['user/%user/tokenauth'] = array(
'title' => t('Token authentication'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'tokenauth_user_profile_form',
1,
),
'access callback' => 'tokenauth_profile_access',
'access arguments' => array(
1,
),
'file' => 'tokenauth.pages.inc',
'type' => MENU_LOCAL_TASK,
);
$items['user/%user/tokenauth/reset'] = array(
'title' => t('Reset token'),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'tokenauth_user_reset_confirm',
),
'access callback' => 'tokenauth_profile_access',
'access arguments' => array(
1,
),
'file' => 'tokenauth.pages.inc',
'type' => MENU_CALLBACK,
);
return $items;
}