function page_manager_page_access_check in Chaos Tool Suite (ctools) 7
Callback to determine if a page is accessible.
Parameters
$task: The task plugin.
$subtask_id: The subtask id
$contexts: The contexts loaded for the task.
Return value
TRUE if the current user can access the page.
1 string reference to 'page_manager_page_access_check'
- page_manager_page_page_manager_tasks in page_manager/
plugins/ tasks/ page.inc - Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for more information.
File
- page_manager/
plugins/ tasks/ page.inc, line 788 - Handle the 'page' task, which creates pages with arbitrary tasks and lets handlers decide how they will be rendered.
Code
function page_manager_page_access_check($task, $subtask_id, $contexts) {
$page = page_manager_page_load($subtask_id);
return ctools_access($page->access, $contexts);
}