X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FActivityType.php;h=e70ce15d0d982c72e3afad00f07808925991c623;hb=85bb0909cffd925f4cd5c0022a68a1ff74d3ad8e;hp=cc92b29102ce34a3364371a50bd259fa410f1caa;hpb=c1c4f1e167414705fbceb41881d8f5cf91ca2d63;p=civicrm-core.git diff --git a/api/v3/ActivityType.php b/api/v3/ActivityType.php index cc92b29102..e70ce15d0d 100644 --- a/api/v3/ActivityType.php +++ b/api/v3/ActivityType.php @@ -1,10 +1,9 @@ 'activity_type'); @@ -101,21 +97,15 @@ function _civicrm_api3_activity_type_create_spec(&$params) { /** * Function to delete activity type * - * @param activityTypeId int activity type id to delete - * - * @return boolen + * @param array $params array including id of activity_type to delete + + * @return array API result array * * @access public * * @deprecated - we will introduce OptionValue Delete- plse consider helping with this if not done - * {@example ActivityTypeDelete.php 0} */ function civicrm_api3_activity_type_delete($params) { - - civicrm_api3_verify_mandatory($params, NULL, array('activity_type_id')); - - $activityTypeId = $params['activity_type_id']; - - return CRM_Core_BAO_OptionValue::del($activityTypeId); + return civicrm_api3_create_success(CRM_Core_BAO_OptionValue::del($params['id']), $params); }