You are here

function crm_core_activity_crm_core_activity_view_get_arguments in CRM Core 7

Callback to get arguments provided by this task handler.

Since this is the crm_core_activity view and there is no UI on the arguments, we create dummy arguments that contain the needed data.

1 call to crm_core_activity_crm_core_activity_view_get_arguments()
crm_core_activity_crm_core_activity_view_get_contexts in modules/crm_core_activity/plugins/tasks/crm_core_activity_view.inc
Callback to get context placeholders provided by this handler.
1 string reference to 'crm_core_activity_crm_core_activity_view_get_arguments'
crm_core_activity_crm_core_activity_view_page_manager_tasks in modules/crm_core_activity/plugins/tasks/crm_core_activity_view.inc
Implements hook_page_manager_task_tasks().

File

modules/crm_core_activity/plugins/tasks/crm_core_activity_view.inc, line 130
Handle the 'crm_core_activity view' override task.

Code

function crm_core_activity_crm_core_activity_view_get_arguments($task, $subtask_id) {
  return array(
    array(
      'keyword' => 'crm_core_activity',
      'identifier' => t('Activity being viewed'),
      'id' => 2,
      'name' => 'entity_id:crm_core_activity',
      'settings' => array(),
    ),
    array(
      'keyword' => 'crm_core_contact',
      'identifier' => t('Contact being viewed'),
      'id' => 1,
      'name' => 'entity_id:crm_core_contact',
      'settings' => array(),
    ),
  );
}