function hook_salesforce_api_pre_import in Salesforce Suite 6.2
Same name and namespace in other branches
- 7.2 salesforce_api.api.php \hook_salesforce_api_pre_import()
Called immediately before creating or updating a Drupal object from Salesforce data import
Parameters
object $object - the drupal object (e.g. node, account) about to be: created or updated
string $name - the name of the fieldmap used for import:
object $sf_data - the data received from Salesforce :
array $changes - if this is a user import, the $changes array as it : will be passed to user_save(). Otherwise NULL.
Return value
Implementing modules should return FALSE if the current import should NOT proceed. Note that this will prevent further processing of implementations of this hook.
2 invocations of hook_salesforce_api_pre_import()
- sf_node_import in sf_node/
sf_node.module - Imports data from Salesforce into a node.
- sf_user_import in sf_user/
sf_user.module - Imports data from Salesforce into a user.
File
- ./
hooks.php, line 266 - These are the hooks that are invoked by the Salesforce core.
Code
function hook_salesforce_api_pre_import(&$object, $name, $sf_data, &$changes = NULL) {
}