Merge pull request #12114 from jitendrapurohit/membership-2
[civicrm-core.git] / api / v3 / ParticipantStatusType.php
index c3658dfdeacf5193f61b84645d21f1cb172a8979..5c2ef79d6eb429b7baf696effa43132a458979a3 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.7                                                |
+ | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2017                                |
  +--------------------------------------------------------------------+
@@ -45,7 +45,7 @@
  *   participant_status array
  */
 function civicrm_api3_participant_status_type_create($params) {
-  return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params);
+  return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params, 'ParticipantStatusType');
 }
 
 /**
@@ -68,9 +68,8 @@ function civicrm_api3_participant_status_type_get($params) {
  *
  * @param array $params
  *   [id]
- *
- * @return array
- *   api result array
+ * @return array api result array
+ * @throws API_Exception
  */
 function civicrm_api3_participant_status_type_delete($params) {
   if (CRM_Event_BAO_ParticipantStatusType::deleteParticipantStatusType($params['id'])) {