- if (!CRM_Utils_Array::value('id', $params)) {
- // an update does not require any mandatory parameters
- civicrm_api3_verify_one_mandatory($params,
- NULL,
- array(
- 'title','mapping_id', 'entity_status', 'entity_value',
- )
- );
- }
-
- $ids = array();
- if (isset($params['id']) && !CRM_Utils_Rule::integer($params['id'])) {
- return civicrm_api3_create_error('Invalid value for ID');
- }
-
+ civicrm_api3_verify_one_mandatory($params, NULL, array('start_action_date', 'absolute_date'));