Merge pull request #4948 from pratikshad/code-cleanup
[civicrm-core.git] / api / v3 / RelationshipType.php
index 8697603b7cf9c31bdeed23de1a0c7d48437031aa..d7b1eb516e6a39710fefa87bcc9463644e8e4136 100644 (file)
@@ -64,7 +64,6 @@ function civicrm_api3_relationship_type_create($params) {
     $ids['relationshipType'] = CRM_Utils_Array::value('id', $params);
   }
 
-  $relationType = new CRM_Contact_BAO_RelationshipType();
   $relationType = CRM_Contact_BAO_RelationshipType::add($params, $ids);
 
   $relType = array();
@@ -105,11 +104,10 @@ function civicrm_api3_relationship_type_get($params) {
 /**
  * Delete a relationship type delete
  *
- * @param id of relationship type $id
+ * @param array $params
  *
  * @return array
  *   API Result Array
- * {@getfields RelationshipType_delete}
  */
 function civicrm_api3_relationship_type_delete($params) {
   return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);