diff --git a/sf_entity/sf_entity.module b/sf_entity/sf_entity.module
index b65a126..8999ac6 100644
--- a/sf_entity/sf_entity.module
+++ b/sf_entity/sf_entity.module
@@ -1377,6 +1377,19 @@ function _sf_entity_get_language($entity) {
 }
 
 /**
+ * Allow a "read-only" option and log data if desired.
+ * @return FALSE if read only mode is enabled.
+ */
+function sf_entity_salesforce_api_pre_export(&$sf_object, &$map, $drupal_id) {
+  if (variable_get('salesforce_api_log_pre_export'), FALSE) {
+    salesforce_api_log(SALESFORCE_LOG_ALL, 'Data in pre_export hook: SF Object: <pre>%sf_object</pre> Map: <pre>%map</pre> Drupal ID: !drupal_id', array('%sf_object' => print_r($sf_object, TRUE), '%map' => print_r($map, TRUE), '!drupal_id' => $drupal_id));
+  }
+  if (variable_get('salesforce_api_read_only', FALSE)) {
+    return FALSE;
+  }
+}
+
+/**
  * Implements hook_default_salesforce_fieldmaps().
  *
  */
