*
* @throws API_Exception
* @return array
- * Array containing 'is_error' to denote success or failure and details of the created activity.
+ * API result array
*/
function civicrm_api3_activity_create($params) {
* Array per getfields documentation.
*
* @return array
+ * API result array
*/
function civicrm_api3_activity_get($params) {
if (!empty($params['contact_id'])) {
}
}
else {
- $activities = _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params, FALSE);
+ $activities = _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params, FALSE, 'Activity');
}
$options = _civicrm_api3_get_options_from_params($params, FALSE, 'Activity', 'get');
if ($options['is_count']) {
* @throws API_Exception
*
* @return array
+ * API result array
*/
function civicrm_api3_activity_delete($params) {