Merge pull request #11929 from civicrm/5.0
[civicrm-core.git] / api / v3 / MessageTemplate.php
index d9f5a2fc8221413ebca0018e118c51caaea7d521..8c4c7554184df13fa96d2037740601c78dcef7fa 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016                                |
+ | Copyright CiviCRM LLC (c) 2004-2017                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -40,7 +40,7 @@
  * @throws \API_Exception
  */
 function civicrm_api3_message_template_create($params) {
-  return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params);
+  return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params, 'MessageTemplate');
 }
 
 /**
@@ -99,6 +99,7 @@ function civicrm_api3_message_template_get($params) {
  * Sends a template.
  *
  * @param array $params
+ * @throws API_Exception
  */
 function civicrm_api3_message_template_send($params) {
   // Change external param names to internal ones