Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sheise/c116576df3853d38698f2ad1478c8cd9 to your computer and use it in GitHub Desktop.
Save sheise/c116576df3853d38698f2ad1478c8cd9 to your computer and use it in GitHub Desktop.
diff --git a/modules/salesforce_pull/salesforce_pull.module b/salesforce/modules/salesforce_pull/salesforce_pull.module
index f8af62b..1e06ffa 100644
--- a/modules/salesforce_pull/salesforce_pull.module
+++ b/modules/salesforce_pull/salesforce_pull.module
@@ -334,7 +334,8 @@ function salesforce_pull_process_records($sf_object) {
$entity_updated = isset($entity->updated) ? $entity->updated : $mapping_object->entity_updated;
$sf_object_updated = strtotime($sf_object['LastModifiedDate']);
- if ($sf_object_updated > $entity_updated) {
+ $allow_all_pull_updates = variable_get('gghh_salesforce_allow_all_pull_updates', 0);
+ if ($allow_all_pull_updates || $sf_object_updated > $entity_updated) {
$wrapper = entity_metadata_wrapper($sf_mapping->drupal_entity_type, $entity);
// Set fields values on the Drupal entity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment