You are here

function search_api_saved_searches_rules_index_results in Search API Saved Searches 7

Callback: Implements the "Fetch the saved searches" rules action.

Parameters

int|null $settings_id: (optional) The ID of the saved search settings entity for which to retrieve searches. NULL to retrieve for all.

Return value

array An associative array with key "search_api_saved_search" containing the IDs of all searches that should be executed.

File

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

Code

function search_api_saved_searches_rules_index_results($settings_id) {
  return array(
    'search_api_saved_search' => search_api_saved_searches_get_searches_to_be_executed($settings_id),
  );
}