You are here

function apachesolr_search_apachesolr_entity_info_alter in Apache Solr Search 8

Same name and namespace in other branches
  1. 6.3 apachesolr_search.module \apachesolr_search_apachesolr_entity_info_alter()
  2. 7 apachesolr_search.module \apachesolr_search_apachesolr_entity_info_alter()

Implements hook_apachesolr_entity_info_alter().

File

./apachesolr_search.module, line 1407
Provides a content search implementation for node content for use with the Apache Solr search application.

Code

function apachesolr_search_apachesolr_entity_info_alter(&$entity_info) {

  // First set defaults so that we don't need to worry about NULL keys.
  foreach (array_keys($entity_info) as $type) {
    $entity_info[$type] += array(
      'result callback' => '',
    );
  }

  // Now set those values that we know.  Other modules can do so
  // for their own entities if they want.
  $entity_info['node']['result callback'] = 'apachesolr_search_node_result';
}