You are here

function _sf_prematch_fieldmap_access in Salesforce Suite 6.2

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

Prematching access callback. There are two prematching local tasks prematching overview and fieldmap prematching. The latter only applies when we're looking at a specific fieldmap, so hide the former if this is the case.

1 string reference to '_sf_prematch_fieldmap_access'
sf_prematch_menu in sf_prematch/sf_prematch.module
Implementation of hook_menu().

File

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

Code

function _sf_prematch_fieldmap_access($perm, $op = 'edit', $id = NULL) {
  if (empty($id) || $id == 'prematching') {
    return user_access('administer salesforce');
  }
  else {
    return FALSE;
  }
}