You are here

function salesforce_api_fieldmap_object_label in Salesforce Suite 7

Same name and namespace in other branches
  1. 5.2 salesforce_api/salesforce_api.module \salesforce_api_fieldmap_object_label()
  2. 6.2 salesforce_api/salesforce_api.module \salesforce_api_fieldmap_object_label()
  3. 7.2 salesforce_api/salesforce_api.module \salesforce_api_fieldmap_object_label()

Returns the label for the object of the specified type and name.

See also


5 calls to salesforce_api_fieldmap_object_label()
salesforce_api_fieldmap_admin in salesforce_api/
Displays an admin table for fieldmaps.
salesforce_api_fieldmap_description in salesforce_api/salesforce_api.module
Returns a string of description text for the specified fieldmap.
salesforce_api_fieldmap_options in salesforce_api/salesforce_api.module
Returns an array of fieldmaps for use as options in the Forms API.
sf_entity_salesforce_form in sf_entity/sf_entity.module
sf_prematch_list in sf_prematch/
@file Admin functions for sf_prematch module.


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


function salesforce_api_fieldmap_object_label($type, $entity, $bundle) {

  // Get the object definition.
  $object = salesforce_api_fieldmap_objects_load($type, $entity, $bundle);

  // If no label is specified, return the object name.
  if (empty($object['label'])) {
    return check_plain($entity . ': ' . $bundle);
  return $object['label'];