Index: apachesolr.index.inc
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- apachesolr.index.inc	(revision 3a2614b4f0579c336ec7ceca156668960fa931cf)
+++ apachesolr.index.inc	(revision )
@@ -232,6 +232,22 @@
     return FALSE;
   }
 
+  return apachesolr_entity_to_documents_delegate($entity, $entity_type, $env_id);
+}
+
+/**
+ * apachesolr_entity_to_documents_delegate() simply isolates some code from
+ * apachesolr_index_entity_to_documents(). That simplifies some stuff in
+ * apachesolr_multilingual_apachesolr_index_documents_alter() where this same
+ * code is required, too. Otherwise this code has to be doublicated in
+ * apachesolr_multilingual.module.
+ *
+ * @param $entity
+ * @param $entity_type
+ * @param $env_id
+ * @return array
+ */
+function apachesolr_entity_to_documents_delegate($entity, $entity_type, $env_id) {
   list($entity_id, $vid, $bundle) = entity_extract_ids($entity_type, $entity);
 
   // Create a new document, and do the bare minimum on it.
