function group_group_view_access_check in Group 7
Callback to determine if the page is accessible.
Parameters
array $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.
See also
group_group_view_page_manager_tasks()
1 string reference to 'group_group_view_access_check'
- group_group_view_page_manager_tasks in plugins/
page_manager/ tasks/ group_view.inc - Implements hook_PLUGIN_page_manager_tasks().
File
- plugins/
page_manager/ tasks/ group_view.inc, line 168 - Take over group/%group with Page Manager.
Code
function group_group_view_access_check($task, $subtask_id, $contexts) {
$context = reset($contexts);
return entity_access('view', 'group', $context->data);
}