You are here

function salesforce_menu in Salesforce Suite 7.3

Same name and namespace in other branches
  1. 5 salesforce.module \salesforce_menu()

Implements hook_menu().

File

./salesforce.module, line 91
API and module for Salesforce integration.

Code

function salesforce_menu() {
  $items = array();
  $items['admin/config/salesforce'] = array(
    'title' => 'Salesforce',
    'description' => 'Salesforce settings.',
    'position' => 'right',
    'page callback' => 'system_admin_menu_block_page',
    'access arguments' => array(
      'access administration pages',
    ),
    'file path' => drupal_get_path('module', 'system'),
    'file' => 'system.admin.inc',
  );
  $items['admin/config/salesforce/authorize'] = array(
    'title' => 'Authorize',
    'description' => 'Authorize this website to communicate with Salesforce.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'salesforce_oauth_form',
    ),
    'access arguments' => array(
      'administer salesforce',
    ),
    'type' => MENU_NORMAL_ITEM,
    'weight' => 0,
  );
  $items['admin/config/salesforce/settings'] = array(
    'title' => 'Settings',
    'description' => 'Additional settings for the Salesforce Suite.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'salesforce_settings_form',
    ),
    'access arguments' => array(
      'administer salesforce',
    ),
    'type' => MENU_NORMAL_ITEM,
    'weight' => 1,
  );
  $items['salesforce/oauth_callback'] = array(
    'title' => 'Salesforce oauth callback',
    'page callback' => 'salesforce_oauth_callback',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/structure/salesforce'] = array(
    'title' => 'Salesforce',
    'description' => 'Configuration for Salesforce integration.',
    'page callback' => 'system_admin_menu_block_page',
    'access arguments' => array(
      'administer salesforce',
    ),
    'file' => 'system.admin.inc',
    'file path' => drupal_get_path('module', 'system'),
  );
  return $items;
}