You are here

function crm_core_contact_view_access_check in CRM Core 7

Same name and namespace in other branches
  1. 8 modules/crm_core_contact/legacy/plugins/tasks/ \crm_core_contact_view_access_check()
  2. 8.2 modules/crm_core_contact/legacy/plugins/tasks/ \crm_core_contact_view_access_check()

Callback to determine if a page is accessible.


$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 'crm_core_contact_view_access_check'
crm_core_contact_view_page_manager_tasks in modules/crm_core_contact/plugins/tasks/
Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for more information.


modules/crm_core_contact/plugins/tasks/, line 166
Handle the 'crm_core_contact view' override task.


function crm_core_contact_view_access_check($task, $subtask_id, $contexts) {
  $context = reset($contexts);
  return crm_core_contact_access('view', $context->data);