*
* @param array $apiRequest
* @return array
- * getfields output
+ * getfields output
*/
function _civicrm_api3_api_getfields(&$apiRequest) {
if (strtolower($apiRequest['action'] == 'getfields')) {
* @param $result
*
* @return boolean
- * true if error, false otherwise
- * @static void
+ * true if error, false otherwise
+ * @static
* @access public
*/
function civicrm_error($result) {
/**
* 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) {