You are here

function sf_prematch_menu in Salesforce Suite 7

Same name and namespace in other branches
  1. 6.2 sf_prematch/sf_prematch.module \sf_prematch_menu()
  2. 7.2 sf_prematch/sf_prematch.module \sf_prematch_menu()

Implementation of hook_menu().

File

sf_prematch/sf_prematch.module, line 16
Extends Salesforce API module so checks for an existing match for an object before creating a new one.

Code

function sf_prematch_menu() {
  $items[SALESFORCE_PATH_FIELDMAPS . '/prematching'] = array(
    'title' => 'Prematching',
    'description' => 'Create or edit prematching for a fieldmap.',
    'page callback' => 'sf_prematch_list',
    'access arguments' => array(
      'administer prematching',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 15,
    'file' => 'sf_prematch.admin.inc',
  );
  $items[SALESFORCE_PATH_FIELDMAPS . '/prematching/%'] = array(
    'title' => 'Edit fieldmap prematching',
    'description' => 'Edit an existing fieldmap prematch.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sf_prematch_edit_form',
      5,
    ),
    'access arguments' => array(
      'administer prematching',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'sf_prematch.admin.inc',
  );
  $items[SALESFORCE_PATH_FIELDMAPS . '/prematching/%/delete'] = array(
    'title' => 'Delete prematching from a fieldmap',
    'description' => 'Delete an existing fieldmap prematch.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'sf_prematch_delete_form',
      5,
    ),
    'access arguments' => array(
      'administer prematching',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'sf_prematch.admin.inc',
  );
  return $items;
}