function sf_entity_salesforce_form_access in Salesforce Suite 7
Same name and namespace in other branches
- 7.2 sf_entity/sf_entity.module \sf_entity_salesforce_form_access()
1 string reference to 'sf_entity_salesforce_form_access'
- sf_entity_menu in sf_entity/
sf_entity.module - Implements hook_menu(). Create a %/salesforce menu callback for all fieldable entities.
File
- sf_entity/
sf_entity.module, line 78 - Integrates fieldable entities with the Salesforce API.
Code
function sf_entity_salesforce_form_access($entity_type, $entity) {
list($id, $vid, $bundle) = entity_extract_ids($entity_type, $entity);
return user_access('sync ' . $entity_type . ' with salesforce');
}