<?php
-// $Id$
/*
+--------------------------------------------------------------------+
$params['contact_id']['title'] = 'Case Client';
$params['contact_id']['api.required'] = 1;
$params['status_id']['api.default'] = 1;
+ $params['medium_id'] = array(
+ 'name' => 'medium_id',
+ 'title' => 'Activity Medium',
+ );
}
/**
* @todo Erik Hommel 16 dec 2010 check if all DB fields are returned
*/
function civicrm_api3_case_get($params) {
+ civicrm_api3_verify_mandatory($params, NULL, array(
+ array('case_id', 'contact_id', 'activity_id', 'contact_id')
+ ));
+
$options = _civicrm_api3_get_options_from_params($params);
// Get by id
}
return civicrm_api3_create_success($cases, $params, 'case', 'get');
}
-
- return civicrm_api3_create_error('Missing required parameter. Must provide case_id, contact_id, activity_id, or contact_id.');
}
/**