function salesforce_api_fieldmap_description in Salesforce Suite 5.2
Same name and namespace in other branches
- 6.2 salesforce_api/salesforce_api.module \salesforce_api_fieldmap_description()
- 7 salesforce_api/salesforce_api.module \salesforce_api_fieldmap_description()
- 7.2 salesforce_api/salesforce_api.module \salesforce_api_fieldmap_description()
2 calls to salesforce_api_fieldmap_description()
- salesforce_api_fieldmap_clone_form in salesforce_api/
salesforce_api.admin.inc - salesforce_api_fieldmap_edit_form in salesforce_api/
salesforce_api.admin.inc
File
- salesforce_api/
salesforce_api.module, line 661 - Defines an API that enables modules to interact with the Salesforce server.
Code
function salesforce_api_fieldmap_description($map) {
// Build a description for this fieldmap based on the action.
if ($map['action'] == 'import') {
return t('Fieldmap @index maps Salesforce %salesforce objects to Drupal %drupal objects for import.', array(
'@index' => $map['index'],
'%drupal' => salesforce_api_fieldmap_object_label('drupal', $map['drupal']),
'%salesforce' => salesforce_api_fieldmap_object_label('salesforce', $map['salesforce']),
));
}
else {
return t('Fieldmap @index maps Drupal %drupal objects to Salesforce %salesforce objects for export.', array(
'@index' => $map['index'],
'%drupal' => salesforce_api_fieldmap_object_label('drupal', $map['drupal']),
'%salesforce' => salesforce_api_fieldmap_object_label('salesforce', $map['salesforce']),
));
}
}