You are here

function search_api_page_search_api_page_access_check in Search API Pages 7

Access callback: Determines if the given page is accessible.

Parameters

string $task: The task plugin.

string $subtask_id: The subtask ID.

array $contexts: The contexts loaded for the task.

Return value

bool TRUE if the current user can access the page, FALSE otherwise.

1 string reference to 'search_api_page_search_api_page_access_check'
search_api_page_search_api_page_page_manager_tasks in plugins/tasks/search_api_page.inc
Implements a specialized version of hook_page_manager_task_tasks().

File

plugins/tasks/search_api_page.inc, line 216
Handles the 'search api page' override task.

Code

function search_api_page_search_api_page_access_check($task, $subtask_id, $contexts) {
  return user_access('access search_api_page');
}