* @param array $params
* Associative array of property name/value pairs to insert in new relationship type.
*
- * @return Newly created Relationship_type object
- * {@getfields RelationshipType_create}
- * @access public
- * {@schema Contact/RelationshipType.xml}
+ * @return array
*/
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();
* @access public
* {@getfields RelationshipType_get}
* @example RelationshipTypeGet.php
+ * @param array $params
+ * @return array
*/
function civicrm_api3_relationship_type_get($params) {
return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);
/**
* Delete a relationship type delete
*
- * @param id of relationship type $id
+ * @param array $params
*
* @return array
- * API Result Array
- * {@getfields RelationshipType_delete}
- * @static void
- * @access public
+ * API Result Array
*/
function civicrm_api3_relationship_type_delete($params) {
return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);