*
* This api has a legacy/nonstandard signature.
* On success, the return array will be structured as follows:
- * @code
+ * ```
* array(
* "is_error" => 0,
* "version" => 3,
* "total_count" => integer
* )
* )
- * @endcode
+ * ```
*
* On failure, the return array will be structured as follows:
- * @code
+ * ```
* array(
* 'is_error' => 1,
* 'error_message' = string,
* 'error_data' = mixed or undefined
* )
- * @endcode
+ * ```
*
* @param array $params
* Input parameters:
$params['contact_id'] = $info['values'][$params['id']]['contact_id'];
}
}
- $action = CRM_Utils_Array::value('status', $params, 'Added');
+ $action = $params['status'] ?? 'Added';
return _civicrm_api3_group_contact_common($params, $action);
}