You are here

function page_manager_user_view_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_user_view_access_check'
page_manager_user_view_page_manager_tasks in page_manager/plugins/tasks/user_view.inc
@file Overrides the user profile display at user/%user.

File

page_manager/plugins/tasks/user_view.inc, line 158
Overrides the user profile display at user/%user.

Code

function page_manager_user_view_access_check($task, $subtask_id, $contexts) {
  $context = reset($contexts);
  return user_view_access($context->data);
}