<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
*
* {@example TagCreate.php}
*
- * @param $params
+ * @param array $params
*
- * @return array of newly created tag property values.
+ * @return array
+ * Array of newly created tag property values.
* {@getfields tag_create}
- * @access public
*/
function civicrm_api3_tag_create($params) {
return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params);
/**
* Specify Meta data for create. Note that this data is retrievable via the getfields function
* and is used for pre-filling defaults and ensuring mandatory requirements are met.
+ *
+ * @param array $params
*/
function _civicrm_api3_tag_create_spec(&$params) {
$params['used_for']['api.default'] = 'civicrm_contact';
/**
* Deletes an existing Tag
*
- * @param array $params
+ * @param array $params
*
* @example TagDelete.ph
*
- * @return array API result array
+ * @return array
+ * API result array
* {@getfields tag_delete}
- * @access public
*/
function civicrm_api3_tag_delete($params) {
return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params);
*
* @example TagGet.php
*
- * @param array $params an associative array of name/value pairs.
+ * @param array $params
+ * An associative array of name/value pairs.
*
- * @return array details of found tags else error
+ * @return array
+ * details of found tags else error
* {@getfields tag_get}
- * @access public
*/
function civicrm_api3_tag_get($params) {
return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);
}
-