From f1a0080c7326f9a527455115ed86e343d59efc33 Mon Sep 17 00:00:00 2001 From: Eileen Date: Thu, 10 Oct 2013 09:36:52 +1300 Subject: [PATCH] profile-api comments tidy-up --- api/v3/Profile.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/api/v3/Profile.php b/api/v3/Profile.php index c344138390..099aa01ac1 100644 --- a/api/v3/Profile.php +++ b/api/v3/Profile.php @@ -249,7 +249,7 @@ function civicrm_api3_profile_submit($params) { $tags = $profileParams['tag']; unset($profileParams['tag']); } - + return civicrm_api3('contact', 'create', $profileParams); $ufGroupDetails = array(); @@ -386,6 +386,10 @@ function civicrm_api3_profile_apply($params) { * * Note that that since the existing code for deriving a blank profile is not easily accessible our * interim solution is just to return an empty array + * + * @param $params + * + * @return array */ function _civicrm_api3_profile_getbillingpseudoprofile(&$params) { @@ -595,10 +599,14 @@ function _civicrm_api3_buildprofile_submitfields($profileID, $optionsBehaviour = function _civicrm_api3_order_by_weight($a, $b) { return CRM_Utils_Array::value('weight', $b) < CRM_Utils_Array::value('weight', $a) ? TRUE : FALSE; } + /** * Here we map the profile fields as stored in the uf_field table to their 'real entity' * we also return the profile fieldname * + * @param $field + * + * @return array */ function _civicrm_api3_map_profile_fields_to_entity(&$field) { $entity = $field['field_type']; -- 2.25.1