You are here

function search_api_saved_searches_rules_get_saved_search_new_items in Search API Saved Searches 7

Callback: Implements the "Fetch the new results for a search" rules action.

Parameters

int $search_id: The ID of the saved search setting entity.

Return value

array Array of the results count and the results list for the given search ID.

File

./search_api_saved_searches.rules.inc, line 109
Rules integration for the Search API Saved Searches module.

Code

function search_api_saved_searches_rules_get_saved_search_new_items($search_id) {
  $search = search_api_saved_search_load($search_id);
  return search_api_saved_search_fetch_search_results($search);
}