function salesforce_mapping_relation_endpoints_fieldmap_options in Salesforce Suite 7.3
Return relation endpoint property as an option.
Parameters
string $entity_type: The type of entity of whose to find relation endpoints of.
Return value
array List of relation endpoints that can be used in an #options array, or FALSE if none are found.
1 string reference to 'salesforce_mapping_relation_endpoints_fieldmap_options'
- salesforce_mapping_salesforce_mapping_fieldmap_type in modules/
salesforce_mapping/ includes/ salesforce_mapping.fieldmap_type.inc - Implements hook_salesforce_mapping_fieldmap_type().
File
- modules/
salesforce_mapping/ includes/ salesforce_mapping.fieldmap_type.inc, line 237 - Data and callbacks for fieldmap types.
Code
function salesforce_mapping_relation_endpoints_fieldmap_options($entity_type, $entity_bundle) {
$properties = entity_get_all_property_info($entity_type);
if (isset($properties['endpoints'])) {
return array(
'endpoints' => $properties['endpoints']['label'],
);
}
else {
return FALSE;
}
}