You are here

function search_api_page_access in Search API Pages 7

Menu access callback for search pages.

2 calls to search_api_page_access()
search_api_page_block_view in ./search_api_page.module
Implements hook_block_view().
search_api_page_search_box_content_type_render in plugins/content_types/search_api_page_search_box.inc
Renders the custom content type.
1 string reference to 'search_api_page_access'
search_api_page_menu in ./search_api_page.module
Implements hook_menu().

File

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

Code

function search_api_page_access($page_machine_name) {

  // Check for either individual page access or all pages access.
  return user_access('access search_api_page') || user_access('access ' . $page_machine_name . ' search_api_page');
}