comment fixes
authorEileen McNaughton <eileen@fuzion.co.nz>
Mon, 2 Feb 2015 06:40:51 +0000 (19:40 +1300)
committerEileen McNaughton <eileen@fuzion.co.nz>
Tue, 3 Feb 2015 00:57:30 +0000 (13:57 +1300)
23 files changed:
api/Exception.php
api/v3/Address.php
api/v3/ContactType.php
api/v3/ContributionPage.php
api/v3/ContributionRecur.php
api/v3/ContributionSoft.php
api/v3/Country.php
api/v3/CustomField.php
api/v3/CustomGroup.php
api/v3/DashboardContact.php
api/v3/Email.php
api/v3/File.php
api/v3/Grant.php
api/v3/MailingEventQueue.php
api/v3/Phone/Get.php
api/v3/PriceField.php
api/v3/RelationshipType.php
api/v3/SmsProvider.php
api/v3/Survey.php
api/v3/Tag.php
api/v3/UFField.php
api/v3/UFGroup.php
api/v3/UFJoin.php

index 406997be46c8af9bd38aded5da7027dcde9675f1..8ec7eb3ae6a8212a13e790b1b6fa02d247dae97f 100644 (file)
@@ -24,6 +24,8 @@ class API_Exception extends Exception {
   private $extraParams = array();
 
   /**
+   * Class constructor.
+   *
    * @param string $message
    *   The human friendly error message.
    * @param mixed $error_code
index 6cbf1d9e72923425d3bf98b4a6f6b33469bb92bc..463490bd189b92427400c7c1822ff1027ee67234 100644 (file)
  */
 
 /**
- *  Add an Address for a contact
- *
- * Allowed @params array keys are:
- * {@getfields address_create}
- * {@example AddressCreate.php}
+ *  Add an Address for a contact.
  *
  * @param array $params
+ *   Array per getfields metadata.
  *
  * @return array
  *   Array of newly created tag property values.
@@ -108,10 +105,10 @@ function _civicrm_api3_address_create_spec(&$params) {
   );
 }
 /**
- * Adjust Metadata for Get action
+ * Adjust Metadata for Get action.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_address_get_spec(&$params) {
   $params['world_region'] = array(
@@ -122,12 +119,10 @@ function _civicrm_api3_address_get_spec(&$params) {
 }
 
 /**
- * Deletes an existing Address
+ * Delete an existing Address.
  *
  * @param array $params
- *
- * {@getfields address_delete}
- * {@example AddressDelete.php 0}
+ *   Array per getfields metadata.
  *
  * @return array
  *   api result array
@@ -137,11 +132,10 @@ function civicrm_api3_address_delete($params) {
 }
 
 /**
- * Retrieve one or more addresses on address_id, contact_id, street_name, city
- * or a combination of those
+ * Retrieve one or more addresses.
  *
  * @param array $params
- *   An associative array of name/value pairs.
+ *   Array per getfields metadata.
  *
  * @return array
  *   details of found addresses else error
index 5eb990eda533095d95a86a82e80da5dd36b4db0c..9200a210b8969ed6254a0f59bf5e88ccc8d229da 100644 (file)
@@ -41,8 +41,7 @@
  * be in $params array.
  *
  * @param array $params
- *   (reference) Associative array of property.
- *                       name/value pairs to insert in new 'contact_type'
+ *   Array per getfields metadata.
  *
  * @return array
  *   contact_type array
index 0c838cb4afed8f73400dc84d2aff5d64078034c9..a2ac132a9d19c1359280697b1fecaa0948aa4145 100644 (file)
  */
 
 /**
- * Create or update a contribution_page
+ * Create or update a contribution_page.
  *
  * @param array $params
- *   Associative array of property.
- *                       name/value pairs to insert in new 'contribution_page'
- * @example ContributionPageCreate.php Std Create example
+ *   Array per getfields metadata.
  *
  * @return array
  *   api result array
- *   {@getfields contribution_page_create}
  */
 function civicrm_api3_contribution_page_create($params) {
   $result = _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params);
@@ -59,7 +56,7 @@ function civicrm_api3_contribution_page_create($params) {
  * The metadata is used for setting defaults, documentation & validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array per getfields metadata.
  */
 function _civicrm_api3_contribution_page_create_spec(&$params) {
   $params['financial_type_id']['api.required'] = 1;
@@ -68,50 +65,42 @@ function _civicrm_api3_contribution_page_create_spec(&$params) {
 }
 
 /**
- * Returns array of contribution_pages  matching a set of one or more group properties
+ * Returns array of contribution_pages matching a set of one or more group properties.
  *
  * @param array $params
- *   Array of one or more valid property_name=>value pairs.
+ *   Array per getfields metadata.
  *
  * @return array
  *   API Result array Array of matching contribution_pages
- *   {@getfields contribution_page_get}
  */
 function civicrm_api3_contribution_page_get($params) {
   return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);
 }
 
 /**
- * delete an existing contribution_page
+ * Delete an existing contribution_page.
  *
  * This method is used to delete any existing contribution_page. id of the group
  * to be deleted is required field in $params array
  *
  * @param array $params
- *   Array containing id of the group.
- *                       to be deleted
+ *   Array per getfields metadata.
  *
  * @return array
  *   API result Array
- *   {@getfields contribution_page_delete}
  */
 function civicrm_api3_contribution_page_delete($params) {
   return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
 }
 
 /**
- * delete an existing contribution_page
- *
- * This method is used to delete any existing contribution_page. id of the group
- * to be deleted is required field in $params array
+ *  Submit a contribution_page.
  *
  * @param array $params
- *   (reference) array containing id of the group.
- *                       to be deleted
+ *   Array per getfields metadata.
  *
  * @return array
  *   API result array
- *   {@getfields contribution_page_delete}
  */
 function civicrm_api3_contribution_page_submit($params) {
   $result = CRM_Contribute_Form_Contribution_Confirm::submit($params);
index c30303bef3ce229ba7908d67db9a5411c45bae31..0933e59cf2bbda32920e6b9493a711bc59bccc8d 100644 (file)
  */
 
 /**
- * Create or update a contribution_recur
+ * Create or update a contribution_recur.
  *
  * @param array $params
- *   Associative array of property.
- *                       name/value pairs to insert in new 'contribution_recur'
- * @example ContributionRecurCreate.php Std Create example
+ *   Array per getfields metadata.
  *
  * @return array
  *   api result array
index dcf39fe1e1ee4fb83fa5587707a9bf4ef919e6cb..8805cfedc3cf3c00cc45d8793352b34fc89d2ef3 100644 (file)
@@ -70,7 +70,7 @@ function _civicrm_api3_contribution_soft_create_spec(&$params) {
  * @param array $params
  */
 function civicrm_api3_contribution_soft_delete($params) {
-  // non standard BAO - we have to write custom code to cope
+  // Non standard BAO - we have to write custom code to cope.
   CRM_Contribute_BAO_ContributionSoft::del(array('id' => $params['id']));
 
 }
@@ -78,11 +78,11 @@ function civicrm_api3_contribution_soft_delete($params) {
 /**
  * Retrieve one or more Soft Credits.
  *
- * @example ContributionSoftGet.php Standard Get Example
- *
- * @param array $params An associative array of name/value pairs.
+ * @param array $params
+ *   Array per getfields metadata.
  *
- * @return array api result {@getfields contribution_soft_get}
+ * @return array
+ *  API result
  */
 function civicrm_api3_contribution_soft_get($params) {
   return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);
index 2a854bc690361830f9ff06f30bcbdad07506451a..5683691ebf73e50eddaa7129fbe75bab38ebf2c1 100644 (file)
  * @version $Id: Country.php 2011-02-16 ErikHommel $
  */
 
-require_once 'CRM/Core/DAO/Country.php';
-
 /**
- * Add an Country for a contact
- *
- * Allowed @params array keys are:
- *
- * @example CountryCreate.php Standard Create Example
+ * Add an Country for a contact.
  *
  * @param array $params
+ *   Array per getfields metadata.
+ *
  * @return array
  *   API result array
  * @throws \API_Exception
@@ -68,31 +64,24 @@ function _civicrm_api3_country_create_spec(&$params) {
 }
 
 /**
- * Deletes an existing Country
+ * Deletes an existing Country.
  *
  * @param array $params
  *
- * @example CountryDelete.php Standard Delete Example
- *
- * @return bool
- *   | error  true if successfull, error otherwise
- *   {@getfields country_delete}
+ * @return array
  */
 function civicrm_api3_country_delete($params) {
   return _civicrm_api3_basic_delete(_civicrm_api3_get_DAO(__FUNCTION__), $params);
 }
 
 /**
- * Retrieve one or more countrys
- *
- * @example CountryGet.php Standard Get Example
+ * Retrieve one or more countryies.
  *
  * @param array $params
- *   An associative array of name/value pairs.
+ *   Array per getfields metadata.
  *
  * @return array
  *   api result array
- *   {@getfields country_get}
  */
 function civicrm_api3_country_get($params) {
 
index 57b09a1a161011bd83d8f948f4ba5ba7a92954ad..bfcf45e4cd34ec6c4f02a6fdd999bcb71ac14fea 100644 (file)
 
 /**
  * Create a 'custom field' within a custom field group.
+ *
  * We also empty the static var in the getfields
  * function after deletion so that the field is available for us (getfields manages date conversion
  * among other things
  *
  * @param array $params
- *   Array Associative array of property name/value pairs to create new custom field.
+ *   Array per getfields metadata.
  *
  * @return array
  *   API success array
  */
 function civicrm_api3_custom_field_create($params) {
 
-  // Array created for passing options in params
+  // Array created for passing options in params.
   if (isset($params['option_values']) && is_array($params['option_values'])) {
     foreach ($params['option_values'] as $key => $value) {
       $params['option_label'][$key] = $value['label'];
@@ -66,7 +67,7 @@ function civicrm_api3_custom_field_create($params) {
 }
 
 /**
- * Flush static caches in functions that might have stored available custom fields
+ * Flush static caches in functions that might have stored available custom fields.
  */
 function _civicrm_api3_custom_field_flush_static_caches() {
   civicrm_api('custom_field', 'getfields', array('version' => 3, 'cache_clear' => 1));
@@ -122,7 +123,8 @@ function civicrm_api3_custom_field_get($params) {
 }
 
 /**
- * Helper function to validate custom field value
+ * Helper function to validate custom field value.
+ *
  * @deprecated
  *
  * @param string $fieldName
@@ -246,8 +248,11 @@ SELECT count(*)
 }
 
 /**
- * CRM-15191 - Hack to ensure the cache gets cleared after updating a custom field
+ * CRM-15191 - Hack to ensure the cache gets cleared after updating a custom field.
+ *
  * @param array $params
+ *   Array per getfields metadata.
+ *
  * @return array
  */
 function civicrm_api3_custom_field_setvalue($params) {
index 672f98352cbc6ec5e14205e88cb7208702b18d70..0fcba799c00aa13ca50236c0e1b66c21162f63a1 100644 (file)
  * @version $Id: CustomGroup.php 30879 2010-11-22 15:45:55Z shot $
  */
 
-/**
- * Most API functions take in associative arrays ( name => value pairs
- * as parameters. Some of the most commonly used parameters are
- * described below
- *
- * @param array $params
- *   An associative array used in construction.
- *   retrieval of the object
- * @todo missing get function
- */
-
 /**
  * Use this API to create a new group.
  *
@@ -56,7 +45,7 @@
  * $params['class_name'] is a required field, class being extended.
  *
  * @param array $params
- *   Array of property name/value pairs to insert in group.
+ *   Array per getfields metadata.
  *
  * @return array
  * @todo $params['extends'] is array format - is that std compatible
@@ -108,10 +97,10 @@ function civicrm_api3_custom_group_delete($params) {
 }
 
 /**
- * Use this API to get existing custom fields.
+ * API to get existing custom fields.
  *
  * @param array $params
- *   Array to search on.
+ *   Array per getfields metadata.
  *
  * @return array
  */
@@ -123,6 +112,7 @@ function civicrm_api3_custom_group_get($params) {
  * CRM-15191 - Hack to ensure the cache gets cleared after updating a custom group.
  *
  * @param array $params
+ *   Array per getfields metadata.
  *
  * @return array
  */
index f6c60ddabd8037b084ef86713fe663f09c9124b2..e96ef599e8488993b86697a78e39b66fe71401ae 100644 (file)
@@ -59,14 +59,12 @@ function civicrm_api3_dashboard_contact_create($params) {
 }
 
 /**
- * Gets a CiviCRM Dashlets of Contacts according to parameters
+ * Gets a CiviCRM Dashlets of Contacts according to parameters.
  *
  * @param array $params
- *   Associative array of property name/value.
- *                             pairs for the activity.
+ *   Array per getfields metadata.
  *
  * @return array
- *
  */
 function civicrm_api3_dashboard_contact_get($params) {
   return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);
@@ -85,7 +83,10 @@ function _civicrm_api3_dashboard_contact_create_spec(&$params) {
 }
 
 /**
+ * Check permissions on contact dashboard retrieval.
+ *
  * @param array $params
+ *   Array per getfields metadata.
  *
  * @return array|null
  */
index b1cee2718797c30176ba7b08c3b054d011699227..ff2ae35a2764235d676cb6402f7acef06246bded 100644 (file)
  */
 
 /**
- * Add an Email for a contact
- *
- * Allowed @params array keys are:
- *
- * @example EmailCreate.php Standard Create Example
+ * Add an Email for a contact.
  *
  * @param array $params
+ *   Array per getfields metadata.
  *
  * @return array
  *   API result array
@@ -67,24 +64,23 @@ function _civicrm_api3_email_create_spec(&$params) {
 }
 
 /**
- * Deletes an existing Email
+ * Deletes an existing Email.
  *
  * @param array $params
+ *   Array per getfields metadata.
  *
- * @example EmailDelete.php Standard Delete Example
- *
- * @return bool
- *   | error  true if successfull, error otherwise
+ * @return array
+ *   API result array.
  */
 function civicrm_api3_email_delete($params) {
   return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
 }
 
 /**
- * Retrieve one or more emails
+ * Retrieve one or more emails.
  *
  * @param array $params
- *   An associative array of name/value pairs.
+ *   Array per getfields metadata.
  *
  * @return array
  *   api result array
index c75c8e3e726b08678d662efba0db05d7db69beac..682775b1e7e9d156feae2558a53583ee88826543 100644 (file)
 /**
  * Create a file.
  *
- * This API is used for creating a file
- *
  * @param array $params
- *   An associative array of name/value property values of civicrm_file.
+ *   Array per getfields metadata.
  *
  * @return array
  *   Array of newly created file property values.
@@ -85,11 +83,8 @@ function civicrm_api3_file_create($params) {
 /**
  * Get a file.
  *
- * This api is used for finding an existing file.
- * Required parameters : id OR file_type_id of a file
- *
  * @param array $params
- *   An associative array of name/value property values of civicrm_file.
+ *   Array per getfields metadata.
  *
  * @return array
  *   Array of all found file object property values.
@@ -102,9 +97,8 @@ function civicrm_api3_file_get($params) {
 /**
  * Update an existing file.
  *
- * This api is used for updating an existing file.
- *
  * @param array $params
+ *   Array per getfields metadata.
  *
  * @return array
  */
@@ -131,9 +125,8 @@ function civicrm_api3_file_update($params) {
 /**
  * Delete an existing file.
  *
- * This API is used for deleting a file
- *
  * @param array $params
+ *   Array per getfields metadata.
  *
  * @return array
  *   API result array
index 2e19211283198c49d0d3cf51ef0d683fda14ff9b..0d7520dc51bc8e2f680768645422201b1a780ed3 100644 (file)
  */
 
 /**
- * create/update grant
- *
- * This API is used to create new grant or update any of the existing
- * In case of updating existing grant, id of that particular grant must
- * be in $params array.
+ * Create/update grant.
  *
  * @param array $params
- *   Associative array of property.
- *                       name/value pairs to insert in new 'grant'
+ *   Array per getfields metadata.
  *
  * @return array
  *   grant array
- *   {@getfields grant_create}
  */
 function civicrm_api3_grant_create($params) {
   return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params, 'Grant');
@@ -66,34 +60,29 @@ function _civicrm_api3_grant_create_spec(&$params) {
 }
 
 /**
- * Returns array of grants  matching a set of one or more group properties
+ * Returns array of grants matching a set of one or more group properties.
  *
  * @param array $params
- *   Array of one or more valid.
- *                       property_name=>value pairs. If $params is set
- *                       as null, all grants will be returned
+ *   Array per getfields metadata.
  *
  * @return array
  *   Array of matching grants
- *   {@getfields grant_get}
  */
 function civicrm_api3_grant_get($params) {
   return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params, TRUE, 'Grant');
 }
 
 /**
- * delete an existing grant
+ * Delete an existing grant.
  *
  * This method is used to delete any existing grant. id of the group
  * to be deleted is required field in $params array
  *
  * @param array $params
- *   Array containing id of the group.
- *                       to be deleted
+ *   Array per getfields metadata.
  *
  * @return array
  *   API Result Array
- *   {@getfields grant_delete}
  */
 function civicrm_api3_grant_delete($params) {
   return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
index a2bdbba103c544e5c75dc1a501b33608cef9ac5d..a0f56e1edb64b43978380f6ea1fbeb0f8a10fa02 100644 (file)
  * @subpackage API_MailerGroup
  * @copyright CiviCRM LLC (c) 2004-2014
  * $Id$
- *
  */
 
 /**
- * Handle a confirm event
+ * Handle a confirm event.
  *
  * @param array $params
- *   Associative array of property.
+ *   Array of property.
  *
  * @throws Exception
  * @return array
@@ -58,6 +57,8 @@ function civicrm_api3_mailing_event_queue_create($params) {
 }
 
 /**
+ * Get mailing event queue record.
+ *
  * @param array $params
  * @return array
  */
@@ -66,7 +67,10 @@ function civicrm_api3_mailing_event_queue_get($params) {
 }
 
 /**
+ * Delete mailing event queue record.
+ *
  * @param array $params
+ *
  * @return array
  * @throws \API_Exception
  */
index 8edc255b9805a4bfe672ae8fa770651445867bb7..afa99b2f7aeeac54714964a2517172fdef72d2ae 100644 (file)
@@ -10,7 +10,7 @@
  * your module under api/v3/Phone/Dial.php.
  *
  * @param array $params
- *   An associative array of name/value pairs.
+ *   Array per getfields metadata.
  *
  * @return array
  *   details of found phones else error
index 530a581fa9abb8061266c91001582582d92ea015..fd9d00e1f197119a23334ac9ddc58445b55a63b5 100644 (file)
  */
 
 /**
- * Create or update a price_field
+ * Create or update a price_field.
  *
  * @param array $params
  *   Associative array of property.
  *                       name/value pairs to insert in new 'price_field'
- * @example PriceFieldCreate.php Std Create example
  *
  * @return array
  *   api result array
- *   {@getfields price_field_create}
  */
 function civicrm_api3_price_field_create($params) {
   return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params);
@@ -63,7 +61,7 @@ function _civicrm_api3_price_field_create_spec(&$params) {
 }
 
 /**
- * Returns array of price_fields  matching a set of one or more group properties
+ * Returns array of price_fields matching a set of one or more group properties.
  *
  * @param array $params
  *   Array of one or more valid property_name=>value pairs. If $params is set.
@@ -71,14 +69,13 @@ function _civicrm_api3_price_field_create_spec(&$params) {
  *
  * @return array
  *   Array of matching price_fields
- *   {@getfields price_field_get}
  */
 function civicrm_api3_price_field_get($params) {
   return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);
 }
 
 /**
- * delete an existing price_field
+ * Delete an existing price_field.
  *
  * This method is used to delete any existing price_field. id of the group
  * to be deleted is required field in $params array
@@ -89,7 +86,6 @@ function civicrm_api3_price_field_get($params) {
  *
  * @return array
  *   API result array
- *   {@getfields price_field_delete}
  */
 function civicrm_api3_price_field_delete($params) {
   return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
index 8553e244aa79b7e56e38f77b3b4a5fa98402e935..29fe4a8941b44804966f393d3d1a4f10368fe170 100644 (file)
@@ -39,7 +39,7 @@
  * Create relationship type.
  *
  * @param array $params
- *   Associative array of property name/value pairs to insert in new relationship type.
+ *   Array per getfields metadata.
  *
  * @return array
  */
index 0e049ca49e11eded7e0cbf117f861aee107b31ec..79840a91f76dab8a61bae1dedebc8aaf5be6a363 100644 (file)
  *
  * @package CiviCRM_APIv3
  * @subpackage API_sms_provider
- *
  */
 
 /**
- * Save an sms_provider
- *
- * Allowed @params array keys are:
- * {@getfields sms_provider_create}
- * @example sms_providerCreate.php
+ * Save an sms_provider.
  *
  * @param array $params
  *
@@ -50,11 +45,7 @@ function civicrm_api3_sms_provider_create($params) {
 }
 
 /**
- * Get an sms_provider
- *
- * Allowed @params array keys are:
- * {@getfields sms_provider_get}
- * @example sms_providerCreate.php
+ * Get an sms_provider.
  *
  * @param array $params
  *
@@ -66,11 +57,7 @@ function civicrm_api3_sms_provider_get($params) {
 }
 
 /**
- * Delete an sms_provider
- *
- * Allowed @params array keys are:
- * {@getfields sms_provider_delete}
- * @example sms_providerCreate.php
+ * Delete an sms_provider.
  *
  * @param array $params
  *
index 1f088337cb032a1f2b0436c07aa93283b7d2fc70..f270127a2188e9c0bac80df0d2b06afd568ed782 100644 (file)
 
 
 /**
- * Create or update a survey
+ * Create or update a survey.
  *
  * @param array $params
- *   Associative array of property.
- *                       name/value pairs to insert in new 'survey'
- * @example SurveyCreate.php Std Create example
+ *   Array per getfields metadata.
  *
  * @return array
  *   api result array
- *   {@getfields survey_create}
  */
 function civicrm_api3_survey_create($params) {
   return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params, 'Survey');
@@ -63,7 +60,7 @@ function _civicrm_api3_survey_create_spec(&$params) {
 }
 
 /**
- * Returns array of surveys  matching a set of one or more group properties
+ * Returns array of surveys  matching a set of one or more group properties.
  *
  * @param array $params
  *   Array of one or more valid.
@@ -72,14 +69,13 @@ function _civicrm_api3_survey_create_spec(&$params) {
  *
  * @return array
  *   API result Array of matching surveys
- *   {@getfields survey_get}
  */
 function civicrm_api3_survey_get($params) {
   return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params, TRUE, 'Survey');
 }
 
 /**
- * delete an existing survey
+ * Delete an existing survey.
  *
  * This method is used to delete any existing survey. id of the group
  * to be deleted is required field in $params array
@@ -90,7 +86,6 @@ function civicrm_api3_survey_get($params) {
  *
  * @return array
  *   api result array
- *   {@getfields survey_delete}
  */
 function civicrm_api3_survey_delete($params) {
   return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
index cc8036ba5445bf416d8c2be81b4e3c544f8ff167..d9b0e2ca0982c5e592e91be73519407255e2f750 100644 (file)
  *
  * Tags are used to classify CRM entities (including Contacts, Groups and Actions).
  *
- * Allowed @params array keys are:
- *
- * {@example TagCreate.php}
- *
  * @param array $params
+ *   Array per getfields metadata.
  *
  * @return array
- *   Array of newly created tag property values.
- *   {@getfields tag_create}
  */
 function civicrm_api3_tag_create($params) {
   return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params);
@@ -86,14 +81,11 @@ function civicrm_api3_tag_delete($params) {
  * This api is used for finding an existing tag.
  * Either id or name of tag are required parameters for this api.
  *
- * @example TagGet.php
- *
  * @param array $params
- *   An associative array of name/value pairs.
+ *   Array per getfields metadata.
  *
  * @return array
  *   details of found tags else error
- *   {@getfields tag_get}
  */
 function civicrm_api3_tag_get($params) {
 
index 510f0e221b917d422d3a49760a1bfd3b7782f4ce..be1dc78364c802f5faa400bba4ff23ea83ac2388 100644 (file)
@@ -39,7 +39,7 @@
  * Defines 'uf field' within a group.
  *
  * @param array $params
- *   Array Associative array of property name/value pairs to create new uf field.
+ *   Array per getfields metadata.
  *
  * @throws API_Exception
  *
index a68efb0b274cfdfe562bc86a4b093904e8f06f91..57a1e0bced90e7c31e7f9292a9876acec330e1f0 100644 (file)
@@ -54,7 +54,7 @@ function _civicrm_api3_uf_group_create_spec(&$params) {
  * See the CRM Data Model for uf_group property definitions
  *
  * @param array $params
- *   Array Associative array of property name/value pairs to insert in group.
+ *   Array per getfields metadata.
  *
  * @return array
  *   API result array
index fc164f74aa3089deb04e54251e3aa37fb80371d7..b8fe74dc777ce85256ac6ae85f548ea1c8b6d4dc 100644 (file)
@@ -39,7 +39,7 @@
  * Takes an associative array and creates a uf join in the database.
  *
  * @param array $params
- *   Assoc array of name/value pairs.
+ *   Array per getfields metadata.
  *
  * @return array
  *   CRM_Core_DAO_UFJoin Array