public function SearchApiAlterUserDomainAccess::alterItems in Domain Integration (Drupal 7) 7
Same name and namespace in other branches
- 8 modules/domain_integration_search_api/includes/callback_user_domain_access.inc \SearchApiAlterUserDomainAccess::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_user_domain_access.inc, line 24 - Contains the SearchApiAlterUserDomainAccess class.
Class
- SearchApiAlterUserDomainAccess
- Adds user domain access information to user indexes.
Code
public function alterItems(array &$items) {
}