You are here

public function SearchApiAlterNodeDomainAccess::alterItems in Domain Integration (Drupal 7) 7

Same name and namespace in other branches
  1. 8 modules/domain_integration_search_api/includes/callback_node_domain_access.inc \SearchApiAlterNodeDomainAccess::alterItems()

Alter items before indexing.

Items which are removed from the array won't be indexed, but will be marked as clean for future indexing. This could for instance be used to implement some sort of access filter for security purposes (e.g., don't index unpublished nodes or comments).

Parameters

array $items: An array of items to be altered, keyed by item IDs.

Overrides SearchApiAlterCallbackInterface::alterItems

File

modules/domain_integration_search_api/includes/callback_node_domain_access.inc, line 25
Contains the SearchApiAlterNodeDomainAccess class.

Class

SearchApiAlterNodeDomainAccess
Adds node domain access information to node indexes.

Code

public function alterItems(array &$items) {
}