You are here

function account_sync_menu in Account Sync 6

Same name and namespace in other branches
  1. 7.2 account_sync.module \account_sync_menu()

Implementation of hook_menu().

File

./account_sync.module, line 6

Code

function account_sync_menu() {
  $items = array();
  $items['admin/user/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',
    'type' => NORMAL_MENU_ITEM,
  );
  $items['admin/user/account_sync/global'] = array(
    'title' => 'Global settings',
    'description' => 'Setup accounts to sync across multiple drupal sites.',
    'access arguments' => array(
      'administer account sync',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/user/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',
    'weight' => 1,
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/user/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',
    'weight' => 2,
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}