You are here

function salesforce_api_permission in Salesforce Suite 7.2

Same name and namespace in other branches
  1. 7 salesforce_api/salesforce_api.module \salesforce_api_permission()

Implements hook_permission().


salesforce_api/salesforce_api.module, line 323
Defines an API that enables modules to interact with the Salesforce server.


function salesforce_api_permission() {
  return array(
    // @todo: Make this permission more granular, so that users can import and export without having it.
    'administer salesforce' => array(
      'title' => t('administer salesforce'),
      'description' => t('Access Salesforce administration screens, manually export, import, unlink entities'),
      'restrict access' => TRUE,
    // @todo: Possibly move this into a separate module due to security implications.
    'use php for salesforce fixed values' => array(
      'title' => t('use php for salesforce fixed values'),
      'description' => t('Write PHP code in a fieldmap for exporting values. Has the potential to create fatal errors if done incorrectly.'),
      'restrict access' => TRUE,