CRM-15578 - Mailing.create API - Set defaults that match UX
[civicrm-core.git] / api / v3 / ContactType.php
index 116fd8f037e5b25bd2ac84a322f2a77ac9e60605..6e4567493b064ec003a8d8d0d96e4a71ade4b578 100644 (file)
  */
 
 /**
- * File for the CiviCRM APIv3 group functions
+ * This api exposes CiviCRM contact types and sub-types.
+ *
+ * CiviCRM comes with 3 primary contact types - Individual, Organization & Household.
+ * Changing these is not advised, but sub_types can be created with this api.
+ * Pass 'parent_id' param to specify which base type a new sub_type extends.
  *
  * @package CiviCRM_APIv3
- * @subpackage API_Survey
- * @copyright CiviCRM LLC (c) 2004-2014
  */
 
 /**
@@ -63,12 +65,11 @@ function civicrm_api3_contact_type_create($params) {
 }
 
 /**
- * Returns array of contact_types  matching a set of one or more group properties.
+ * Returns array of contact_types matching a set of one or more properties.
  *
  * @param array $params
- *   One or more valid.
- *                       property_name=>value pairs. If $params is set
- *                       as null, all contact_types will be returned
+ *   One or more valid property_name=>value pairs.
+ *   If $params is set as null, all contact_types will be returned
  *
  * @return array
  *   Array of matching contact_types
@@ -85,8 +86,7 @@ function civicrm_api3_contact_type_get($params) {
  * to be deleted is required field in $params array
  *
  * @param array $params
- *   Array containing id of the group.
- *                       to be deleted
+ *   [id]
  *
  * @return array
  *   API Result Array