You are here

function sf_notifications_menu in Salesforce Suite 6.2

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

hook_menu implementation

File

sf_notifications/sf_notifications.module, line 9

Code

function sf_notifications_menu() {
  return array(
    SALESFORCE_PATH_NOTIFICATIONS_ADMIN => array(
      'title' => 'Notifications',
      'description' => 'Placeholder for more SalesForce Notifications settings',
      '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_FIELDMAPS . '/%/notifications' => array(
      'title' => 'Notifications',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'sf_notifications_fieldmap_settings',
        4,
      ),
      'access callback' => 'sf_notifications_fieldmap_settings_access',
      'access arguments' => array(
        4,
        'administer salesforce',
      ),
      'file' => 'sf_notifications.admin.inc',
      'type' => MENU_LOCAL_TASK,
      'weight' => 15,
    ),
  );
}