function anonymous_publishing_pet_menu in Anonymous Publishing 7
Implements hook_menu().
File
- modules/
pet/ anonymous_publishing_pet.module, line 250 - Main hooks for Anonymous Publishing PET module.
Code
function anonymous_publishing_pet_menu() {
$items = array();
$items['admin/config/people/anonymous_publishing_pet'] = array(
'title' => 'Anonymous Publishing PET',
'description' => 'Administrator settings for the Anonymous Publishing PET (Privacy Enhanching Technology) submodule.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'anonymous_publishing_pet_admin_settings',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer anonymous_publishing',
),
'type' => MENU_NORMAL_ITEM,
'weight' => 10,
);
$items['admin/config/people/anonymous_publishing_pet/settings'] = array(
'title' => 'Main settings',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/config/people/anonymous_publishing_pet/realnames'] = array(
'title' => 'Real names',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'anonymous_publishing_pet_realnames',
2,
),
'access callback' => 'user_access',
'access arguments' => array(
'administer anonymous_publishing',
),
'type' => MENU_LOCAL_TASK,
'weight' => -5,
);
$items['admin/config/people/anonymous_publishing_pet/privacy'] = array(
'title' => 'Privacy',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'anonymous_publishing_pet_admin_privacy',
),
'access callback' => 'user_access',
'access arguments' => array(
'administer anonymous_publishing',
),
'type' => MENU_LOCAL_TASK,
'weight' => -4,
);
return $items;
}