You are here

function sf_notifications_fieldmap_settings_access in Salesforce Suite 7.2

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

Access callback for the notifications per-fieldmap settings.

File

sf_notifications/sf_notifications.module, line 117

Code

function sf_notifications_fieldmap_settings_access($fieldmap_id, $perm) {
  $active = variable_get('sf_notifications_active_maps', array());
  if (!empty($active[$fieldmap_id])) {
    return user_access($perm);
  }
  return FALSE;
}