Api docblock cleanup.
[civicrm-core.git] / api / v3 / MessageTemplate.php
index 5683f8593ae9e5d3527b345e1e3639e9482b61a4..1623a5ba85fe16bfa274e4b3d3c61962aff1b7cb 100644 (file)
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
- * File for the CiviCRM APIv3 message_template functions
- *
- * @package CiviCRM_SEPA
+ * This api exposes CiviCRM message_template.
  *
+ * @package CiviCRM_APIv3
  */
 
 /**
+ * Create message template.
+ *
  * @param array $params
+ *
  * @return array
  * @throws \API_Exception
  */
@@ -41,11 +43,12 @@ function civicrm_api3_message_template_create($params) {
 }
 
 /**
- * Adjust Metadata for Create action
+ * Adjust Metadata for Create action.
+ *
+ * The metadata is used for setting defaults, documentation & validation.
  *
- * The metadata is used for setting defaults, documentation & validation
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_message_template_create_spec(&$params) {
   $params['msg_title']['api.required'] = 1;
@@ -53,34 +56,37 @@ function _civicrm_api3_message_template_create_spec(&$params) {
   /*  $params['entity_id']['api.required'] = 1;
   $params['entity_table']['api.default'] = "civicrm_contribution_recur";
   $params['type']['api.default'] = "R";
-  */
+   */
 }
 
 /**
+ * Delete message template.
+ *
  * @param array $params
  *
- * @return boolean
- *   | error  true if successfull, error otherwise
- * {@getfields message_template_delete}
+ * @return bool
+ *   API result array
  */
 function civicrm_api3_message_template_delete($params) {
   return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
 }
 
 /**
+ * Adjust metadata for message_template get action.
+ *
  * @param array $params
  */
 function _civicrm_api3_message_template_get_spec(&$params) {
 }
 
 /**
- * Retrieve one or more message_template
+ * Retrieve one or more message_template.
  *
  * @param array $params
- *   An associative array of name/value pairs.
+ *   Array of name/value pairs.
  *
  * @return array
- *   api result array
+ *   API result array.
  */
 function civicrm_api3_message_template_get($params) {
   return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);
@@ -88,6 +94,7 @@ function civicrm_api3_message_template_get($params) {
 
 /**
  * Sends a template.
+ *
  * @param array $params
  */
 function civicrm_api3_message_template_send($params) {
@@ -95,13 +102,13 @@ function civicrm_api3_message_template_send($params) {
 }
 
 /**
- * Adjust Metadata for Create action
+ * Adjust Metadata for Create action.
  *
  * The metadata is used for setting defaults, documentation &
  * validation.
  *
  * @param array $params
- *   Array or parameters determined by getfields.
+ *   Array of parameters determined by getfields.
  */
 function _civicrm_api3_message_template_send_spec(&$params) {
   $params['messageTemplateID']['api.required'] = 1;