diff --git a/includes/callback_bundle_filter.inc b/includes/callback_bundle_filter.inc index 8e3920006e66f60a8ba7f4d1a76be238ed6e0cf3..bb2147f6664261bec552338d3aa6d63702ee3d16 100644 --- a/includes/callback_bundle_filter.inc +++ b/includes/callback_bundle_filter.inc @@ -11,7 +11,7 @@ class SearchApiAlterBundleFilter extends SearchApiAbstractAlterCallback { } public function alterItems(array &$items) { - $info = entity_get_info($this->index->entity_type); + $info = entity_get_info($this->index->item_type); if (self::hasBundles($info) && isset($this->options['bundles'])) { $bundles = array_flip($this->options['bundles']); $default = (bool) $this->options['default']; @@ -25,7 +25,7 @@ class SearchApiAlterBundleFilter extends SearchApiAbstractAlterCallback { } public function configurationForm() { - $info = entity_get_info($this->index->entity_type); + $info = entity_get_info($this->index->item_type); if (self::hasBundles($info)) { $options = array(); foreach ($info['bundles'] as $bundle => $bundle_info) { diff --git a/search_api.api.php b/search_api.api.php index 7339c575c27ed0503bdaa57eb14fc1d0b223f1ce..e245a4da5d0d2f52e27356a689dd4f9578731f64 100644 --- a/search_api.api.php +++ b/search_api.api.php @@ -227,7 +227,7 @@ function hook_search_api_index_items_alter(array &$items, SearchApiIndex $index) unset($items[$id]); } } - example_store_indexed_entity_ids($index->entity_type, array_keys($items)); + example_store_indexed_entity_ids($index->item_type, array_keys($items)); } /** @@ -237,7 +237,7 @@ function hook_search_api_index_items_alter(array &$items, SearchApiIndex $index) * The SearchApiQueryInterface object representing the search query. */ function hook_search_api_query_alter(SearchApiQueryInterface $query) { - $info = entity_get_info($index->entity_type); + $info = entity_get_info($index->item_type); $query->condition($info['entity keys']['id'], 0, '!='); }