function apachesolr_get_index_bundles in Apache Solr Search 6.3
Same name and namespace in other branches
- 8 apachesolr.module \apachesolr_get_index_bundles()
- 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.
11 calls to apachesolr_get_index_bundles()
- apachesolr_content_extra_fields in ./
apachesolr.module - Implements hook_content_extra_fields().
- apachesolr_cron in ./
apachesolr.module - Implements hook_cron(). Runs the indexing process on all writable environments or just a given environment. @todo See if we can add info to the content type array for the cron_check
- apachesolr_ctools_environment_export in ./
apachesolr.module - Callback for exporting Apache Solr environments as CTools exportables.
- apachesolr_entity_should_index in ./
apachesolr.module - Determines if we should index the provided entity.
- apachesolr_index_config_form in ./
apachesolr.admin.inc - Form builder for the bundle configuration form.
File
- ./
apachesolr.module, line 1929 - 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();
}