Merge pull request #3317 from eileenmcnaughton/CRM-14197-postprocesfn
[civicrm-core.git] / api / v3 / Tag.php
index d8129e2703e296a1ed182719afdd686adc871237..fd87dfde70bf399603cc37b8a45b71d62e5dab69 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -31,7 +31,7 @@
  * @package CiviCRM_APIv3
  * @subpackage API_Tag
  *
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
  * @version $Id: Tag.php 30486 2010-11-02 16:12:09Z shot $
  */
 
@@ -42,6 +42,8 @@
  *
  * {@example TagCreate.php}
  *
+ * @param $params
+ *
  * @return array of newly created tag property values.
  * {@getfields tag_create}
  * @access public
@@ -57,6 +59,7 @@ function civicrm_api3_tag_create($params) {
 function _civicrm_api3_tag_create_spec(&$params) {
   $params['used_for']['api.default'] = 'civicrm_contact';
   $params['name']['api.required'] = 1;
+  $params['id']['api.aliases'] = array('tag');
 }
 
 /**