function account_sync_menu in Account Sync 7.2
Same name and namespace in other branches
- 6 account_sync.module \account_sync_menu()
Implements hook_menu().
File
- ./
account_sync.module, line 11 - Contains the base module code and hooks for the account sync module.
Code
function account_sync_menu() {
$items = array();
$items['admin/config/people/account_sync'] = array(
'title' => 'Account sync',
'description' => 'Setup accounts to sync across multiple drupal sites.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'account_sync_settings',
),
'access arguments' => array(
'administer account sync',
),
'file' => 'account_sync.admin.inc',
);
$items['admin/config/people/account_sync/global'] = array(
'title' => 'Global settings',
'description' => 'Setup global settings to sync users.',
'access arguments' => array(
'administer account sync',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 0,
);
$items['admin/config/people/account_sync/sender'] = array(
'title' => 'Sender settings',
'description' => 'Settings for sending the account data to a remote server',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'account_sync_sender_settings',
),
'access arguments' => array(
'administer account sync',
),
'file' => 'account_sync.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
$items['admin/config/people/account_sync/receiver'] = array(
'title' => 'Receiver settings',
'description' => 'Settings for receiving the account data from a remote server',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'account_sync_receiver_settings',
),
'access arguments' => array(
'administer account sync',
),
'file' => 'account_sync.admin.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 2,
);
return $items;
}