function hook_default_salesforce_field_maps in Salesforce Suite 6.2
Builds a set of default field maps. This allows modules to offer out-of-the box mappings based on common use cases or patterns. It is recommended but not required that you use the following verbose naming convention for your default fieldmaps in order to avoid namespace collisions: mymodule_default_drupalentity_sfentity_field_map The name of your default fieldmap will serve as its primary identifier. If/when your fieldmap is overridden, it will be assigned a standard fieldmap id which will then be used to identify the fieldmap. This is a bastardization of the model ctools uses in order to avoid hard dependency on ctools.
Finally, it is highly recommended that your default fieldmap NOT be automatic. Remember that out-of-the-box module behavior should not change Drupal's current working configuration.
Parameters
string $export - the export schema definition with defaults applied. : (generally unused)
Return value
an array of fieldmap objects according to salesforce_field_map schema
See also
salesforce_api_default_salesforce_field_maps
2 functions implement hook_default_salesforce_field_maps()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- sf_node_default_salesforce_field_maps in sf_node/
sf_node.module - Implements hook_default_salesforce_field_maps
- sf_user_default_salesforce_field_maps in sf_user/
sf_user.module - Implements hook_default_salesforce_field_maps
File
- ./
hooks.php, line 188 - These are the hooks that are invoked by the Salesforce core.
Code
function hook_default_salesforce_field_maps($export = array()) {
return array(
(object) array(
'disabled' => FALSE,
'name' => 'salesforce_api_default_user_contact_field_map',
'automatic' => FALSE,
'drupal' => 'user',
'salesforce' => 'Contact',
'fields' => array(
'LastName' => 'name',
'Email' => 'mail',
),
'description' => 'This is a simple example fieldmap to get you started using the Salesforce API.',
),
);
}