$params['assignee_contact_id'] = array(
'name' => 'assignee_id',
- 'title' => 'assigned to',
+ 'title' => 'Activity Assignee',
+ 'description' => 'Contact(s) assigned to this activity.',
'type' => 1,
'FKClassName' => 'CRM_Activity_DAO_ActivityContact',
+ 'FKApiName' => 'Contact',
);
$params['target_contact_id'] = array(
'name' => 'target_id',
'title' => 'Activity Target',
+ 'description' => 'Contact(s) participating in this activity.',
'type' => 1,
'FKClassName' => 'CRM_Activity_DAO_ActivityContact',
+ 'FKApiName' => 'Contact',
);
$params['source_contact_id'] = array(
'name' => 'source_contact_id',
'title' => 'Activity Source Contact',
+ 'description' => 'Person who created this activity. Defaults to current user.',
'type' => 1,
'FKClassName' => 'CRM_Activity_DAO_ActivityContact',
'api.default' => 'user_contact_id',
+ 'FKApiName' => 'Contact',
+ );
+
+ $params['case_id'] = array(
+ 'name' => 'case_id',
+ 'title' => 'Case ID',
+ 'description' => 'For creating an activity as part of a case.',
+ 'type' => 1,
+ 'FKClassName' => 'CRM_Case_DAO_Case',
+ 'FKApiName' => 'Case',
);
}