function bakery_profile_menu in Bakery Single Sign-On System 7.4
Implements hook_menu().
File
- ./
bakery_profile.module, line 6
Code
function bakery_profile_menu() {
$items = array();
if (variable_get('bakery_is_master', 0)) {
$items['bakery/validate'] = array(
'title' => 'Validate',
'access callback' => 'bakery_profile_taste_thinmint_cookie',
'page callback' => 'bakery_profile_eat_thinmint_cookie',
'type' => MENU_CALLBACK,
);
$items['bakery/create'] = array(
'title' => 'Bakery create',
'access callback' => 'bakery_profile_taste_gingerbread_cookie',
'page callback' => 'bakery_profile_eat_gingerbread_cookie',
'type' => MENU_CALLBACK,
);
}
else {
$items['bakery/update'] = array(
'title' => 'Update',
'access callback' => 'bakery_profile_taste_stroopwafel_cookie',
'page callback' => 'bakery_profile_eat_stroopwafel_cookie',
'type' => MENU_CALLBACK,
);
$items['admin/config/people/bakery'] = array(
'title' => 'Pull Bakery user',
'description' => 'Request an account from the master site',
'access arguments' => array(
'administer users',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'bakery_profile_pull_form',
),
'type' => MENU_NORMAL_ITEM,
);
}
return $items;
}