function login_shadowbox_menu in Shadowbox 7.4
Implementation of hook_menu()
File
- login_shadowbox/
login_shadowbox.module, line 56
Code
function login_shadowbox_menu() {
$items = array();
$items['admin/config/media/shadowbox/login'] = array(
'title' => 'Login',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'login_shadowbox_settings',
),
'access arguments' => array(
'administer shadowbox login',
),
'description' => 'Configure the Shadowbox login settings.',
'type' => MENU_LOCAL_TASK,
'weight' => 2,
'file' => 'login_shadowbox.admin.inc',
);
$items['user/login/shadowbox'] = array(
'title' => 'Login',
'page callback' => 'login_shadowbox_login',
'access callback' => 'user_is_anonymous',
'type' => MENU_CALLBACK,
'file' => 'login_shadowbox.pages.inc',
);
$items['user/register/shadowbox'] = array(
'title' => 'Registration',
'page callback' => 'login_shadowbox_register',
'access callback' => 'user_is_anonymous',
'type' => MENU_CALLBACK,
'file' => 'login_shadowbox.pages.inc',
);
$items['user/password/shadowbox'] = array(
'title' => 'Reset Password',
'page callback' => 'login_shadowbox_password',
'access callback' => 'user_is_anonymous',
'type' => MENU_CALLBACK,
'file' => 'login_shadowbox.pages.inc',
);
return $items;
}