You are here

function search_api_page_load_multiple in Search API Pages 7

Load multiple search pages at once.

Parameters

array|false $ids: An array of page IDs or machine names, or FALSE to load all pages.

array $conditions: An array of conditions on the {search_api_page} table in the form 'field' => $value.

bool $reset: Whether to reset the internal entity_load cache.

Return value

array An array of page objects keyed by machine name.

See also

entity_load()

13 calls to search_api_page_load_multiple()
search_api_page_admin_add_validate in ./search_api_page.admin.inc
Validation callback for search_api_page_admin_add().
search_api_page_admin_edit_validate in ./search_api_page.admin.inc
Validation callback for search_api_page_admin_edit().
search_api_page_admin_overview in ./search_api_page.admin.inc
Displays an overview of all defined search pages.
search_api_page_block_info in ./search_api_page.module
Implements hook_block_info().
search_api_page_load in ./search_api_page.module
Loads a search page.

... See full list

File

./search_api_page.module, line 397
Generate search pages using Search API indexes.

Code

function search_api_page_load_multiple($ids = FALSE, array $conditions = array(), $reset = FALSE) {
  $pages = entity_load('search_api_page', $ids, $conditions, $reset);
  return entity_key_array_by_property($pages, 'machine_name');
}