You are here

function search_api_page_load in Search API Pages 7

Loads a search page.

Parameters

int|string $id: The page's id or machine name.

bool $reset: Whether to reset the internal cache.

Return value

Entity A completely loaded page object, or FALSE if no such page exists.

11 calls to search_api_page_load()
search_api_page_block_view in ./search_api_page.module
Implements hook_block_view().
search_api_page_delete in ./search_api_page.module
Deletes a search page.
search_api_page_edit in ./search_api_page.module
Changes a page's settings.
search_api_page_result_content_type_admin_title in plugins/content_types/search_api_page_result.inc
Returns the administrative title for a type.
search_api_page_result_content_type_edit_form in plugins/content_types/search_api_page_result.inc
Returns an edit form for custom type settings.

... See full list

1 string reference to 'search_api_page_load'
search_api_page_admin_add in ./search_api_page.admin.inc
Displays a form for adding a search page.

File

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

Code

function search_api_page_load($id, $reset = FALSE) {
  $ret = search_api_page_load_multiple(array(
    $id,
  ), array(), $reset);
  return $ret ? reset($ret) : FALSE;
}