i think it is better to have the drupal (entity) object as argument in the export hooks (hook_salesforce_api_pre_export & hook_salesforce_api_post_export) instead of drupal (entity) id.

so the drupal object data can be used without having to rebuild the drupal object in the hooks.

Comments

kostajh’s picture

Status: Active » Needs review
StatusFileSize
new2.79 KB
new2.79 KB

This makes a lot of sense to me. Here is a patch that implements the change and updates the API docs.

kostajh’s picture

Status: Needs review » Needs work

Patch in #1 needs to be updated to address SF Queue's usage of pre_export and post_export hooks. Also need to add a notice somewhere to developers that they will need to update their implementations of these hooks.

kostajh’s picture

Status: Needs work » Closed (won't fix)