Drupal modules for browsing and managing Fedora-based digital repositories.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
372 B

<?php
/**
* @file
* Islandora Apache Solr integration.
*/
/**
* Implements hook_apachesolr_index_documents_alter().
*/
function islandora_apachesolr_apachesolr_index_documents_alter(array &$documents, $entity, $entity_type, $env_id) {
if ($entity_type == 'node' && count($documents) > 0 && isset($entity->uuid)) {
$documents[0]->ss_uuid = $entity->uuid;
}
}