function page_manager_blog_user_access_check

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_blog_user_access_check'
page_manager_blog_user_page_manager_tasks in page_manager/plugins/tasks/blog_user.inc
Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for more information.

File

page_manager/plugins/tasks/blog_user.inc, line 154

Code

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