function search_api_saved_searches_get_results_property in Search API Saved Searches 7
Getter callback for the saved search results property.
Parameters
SearchApiSavedSearch $search: The search whose results should be returned.
array $options: Options for the property. Are ignored.
string $property: The property to retrieve. Will always be "results".
string $entity_type: The entity type. Will always be "search_api_saved_search".
Return value
array An array with the IDs of all stored results.
1 string reference to 'search_api_saved_searches_get_results_property'
File
- ./
search_api_saved_searches.module, line 206 - Offers the ability to save searches and be notified of new results.
Code
function search_api_saved_searches_get_results_property(SearchApiSavedSearch $search, array $options, $property, $entity_type) {
return $search->results ? explode(',', $search->results) : array();
}