function urllogin_menu in urllogin 7
Same name and namespace in other branches
- 6 urllogin.module \urllogin_menu()
Implements hook_menu().
File
- ./
urllogin.module, line 91 - Allows login using link from URL.
Code
function urllogin_menu() {
$items = array();
$items['l'] = array(
'title' => 'Link to account',
'description' => 'Links a URL to an account',
'page callback' => 'urllogin_link_page',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
'file' => 'urllogin.inc',
);
$items['l_test'] = array(
'title' => 'Test URL login',
'description' => 'Tests URL but does not log in',
'page callback' => 'urllogin_test_page',
'access callback' => 'user_access',
'access arguments' => array(
'view test pages',
),
'type' => MENU_CALLBACK,
'file' => 'urllogin.inc',
);
$items['admin/config/people/urllogin'] = array(
'title' => 'URL login settings',
'description' => 'Administer URL login',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'urllogin_admin_settings',
),
'access arguments' => array(
'administer URL login',
),
'type' => MENU_NORMAL_ITEM,
'file' => 'urllogin.inc',
);
$items['urllogin/status'] = array(
'title' => 'URL Login Status',
'description' => 'Report URL login status',
'page callback' => 'urllogin_status_page',
'access callback' => 'user_access',
'access arguments' => array(
'view test pages',
),
'type' => MENU_CALLBACK,
'file' => 'urllogin.inc',
);
$items['urllogin/userlist.csv'] = array(
'title' => "download user access URL's",
'description' => "download user access URL's as a file of tab separated variables",
'page callback' => 'urllogin_userlist_page',
'access callback' => 'user_access',
'access arguments' => array(
'download user access URLs',
),
'type' => MENU_CALLBACK,
'file' => 'urllogin.inc',
);
return $items;
}