You are here

function apachesolr_get_index_bundles in Apache Solr Search 8

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

Gets a list of the bundles on the specified entity type that should be indexed.

Parameters

string $core: The Solr environment for which to index entities.

string $entity_type: The entity type to index.

Return value

array The bundles that should be indexed.

9 calls to apachesolr_get_index_bundles()
apachesolr_cron in ./apachesolr.module
Implements hook_cron(). Runs the indexing process on all writable environments or just a given environment.
apachesolr_ctools_environment_export in ./apachesolr.module
Callback for exporting Apache Solr environments as CTools exportables.
apachesolr_entity_info_alter in ./apachesolr.module
Implements hook_entity_info_alter().
apachesolr_index_config_form in ./apachesolr.admin.inc
Form builder for the bundle configuration form.
apachesolr_index_config_form_submit in ./apachesolr.admin.inc
Submit handler for the bundle configuration form.

... See full list

File

./apachesolr.module, line 1919
Integration with the Apache Solr search application.

Code

function apachesolr_get_index_bundles($env_id, $entity_type) {
  $environment = apachesolr_environment_load($env_id);
  return !empty($environment['index_bundles'][$entity_type]) ? $environment['index_bundles'][$entity_type] : array();
}