You are here

function sf_notifications_menu in Salesforce Suite 7.2

Same name and namespace in other branches
  1. 6.2 sf_notifications/sf_notifications.module \sf_notifications_menu()

Implements hook_menu.

File

sf_notifications/sf_notifications.module, line 9

Code

function sf_notifications_menu() {
  return array(
    SALESFORCE_PATH_NOTIFICATIONS_ADMIN => array(
      'title' => 'Notifications',
      'description' => 'Salesforce Notifications configuration settings - allowed IPs, active fieldmaps',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'sf_notifications_settings_form',
      ),
      'access arguments' => array(
        'administer salesforce',
      ),
      'type' => MENU_LOCAL_TASK,
      'file' => 'sf_notifications.admin.inc',
    ),
    SALESFORCE_PATH_NOTIFICATIONS_ENDPOINT => array(
      'title' => FALSE,
      'page callback' => 'sf_notifications_endpoint',
      'access callback' => TRUE,
      'type' => MENU_CALLBACK,
    ),
    SALESFORCE_PATH_NOTIFICATIONS_ADMIN . '/queue' => array(
      'title' => 'Manage Notifications queue',
      'description' => 'Salesforce Notifications queue view and actions.',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'sf_notifications_queue_form',
      ),
      'access arguments' => array(
        'administer salesforce',
      ),
      'type' => MENU_CALLBACK,
      'file' => 'sf_notifications.admin.inc',
    ),
    SALESFORCE_PATH_NOTIFICATIONS_ADMIN . '/queue/process' => array(
      'title' => 'Process Notifications queue',
      'description' => 'Process Salesforce notifications queue',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'sf_notifications_process_confirm_form',
      ),
      'access arguments' => array(
        'administer salesforce',
      ),
      'type' => MENU_CALLBACK,
      'file' => 'sf_notifications.admin.inc',
    ),
    SALESFORCE_PATH_NOTIFICATIONS_ADMIN . '/queue/empty' => array(
      'title' => 'Process Notifications queue',
      'description' => 'Empty Salesforce notifications queue',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'sf_notifications_empty_confirm_form',
      ),
      'access arguments' => array(
        'administer salesforce',
      ),
      'type' => MENU_CALLBACK,
      'file' => 'sf_notifications.admin.inc',
    ),
  );
}