Merge pull request #4910 from colemanw/INFRA-132
[civicrm-core.git] / api / api.php
index cb044c2a8b257351a0d63edd8136ce4d77545290..b88dc5b278f3dfa3b6efa74b9d4778c0e6781116 100644 (file)
@@ -60,7 +60,7 @@ function civicrm_api3($entity, $action, $params = array()) {
  *
  * @param array $apiRequest
  * @return array
  *   getfields output
+ *   getfields output
  */
 function _civicrm_api3_api_getfields(&$apiRequest) {
   if (strtolower($apiRequest['action'] == 'getfields')) {
@@ -90,8 +90,8 @@ function _civicrm_api3_api_getfields(&$apiRequest) {
  * @param $result
  *
  * @return boolean
  *   true if error, false otherwise
- * @static void
+ *   true if error, false otherwise
+ * @static
  * @access public
  */
 function civicrm_error($result) {
@@ -115,10 +115,14 @@ function _civicrm_api_get_camel_name($entity) {
 /**
  * Swap out any $values vars - ie. the value after $value is swapped for the parent $result
  * 'activity_type_id' => '$value.testfield',
-   'tag_id'  => '$value.api.tag.create.id',
-    'tag1_id' => '$value.api.entity.create.0.id'
+ * 'tag_id'  => '$value.api.tag.create.id',
+ * 'tag1_id' => '$value.api.entity.create.0.id'
+ *
+ * @param array $params
+ * @param array $parentResult
+ * @param string $separator
  */
-function _civicrm_api_replace_variables($entity, $action, &$params, &$parentResult, $separator = '.') {
+function _civicrm_api_replace_variables(&$params, &$parentResult, $separator = '.') {
 
   foreach ($params as $field => $value) {