function bakery_menu in Bakery Single Sign-On System 7.4
Same name and namespace in other branches
- 6.2 bakery.module \bakery_menu()
- 6 bakery.module \bakery_menu()
- 7.2 bakery.module \bakery_menu()
- 7.3 bakery.module \bakery_menu()
Implements hook_menu().
File
- ./
bakery.module, line 11
Code
function bakery_menu() {
$items = array();
$items['admin/config/system/bakery'] = array(
'title' => 'Bakery',
'access arguments' => array(
'administer bakery',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'bakery_settings',
),
'description' => 'Infrastructure-wide single-sign-on system options.',
);
if (variable_get('bakery_is_master', 0)) {
$items['bakery'] = array(
'title' => 'Register',
'access callback' => 'user_is_anonymous',
'page callback' => 'bakery_register',
'type' => MENU_CALLBACK,
);
$items['bakery/login'] = array(
'title' => 'Login',
'access callback' => 'user_is_anonymous',
'page callback' => 'bakery_login',
'type' => MENU_CALLBACK,
);
}
return $items;
}