}
}
+/**
+ * @param $params
+ */
function _civicrm_api3_profile_get_spec(&$params) {
$params['profile_id']['api.required'] = TRUE;
$params['contact_id']['description'] = 'If no contact is specified an array of defaults will be returned';
return $profileFields[$profileID];
}
+/**
+ * @param $a
+ * @param $b
+ *
+ * @return bool
+ */
function _civicrm_api3_order_by_weight($a, $b) {
return CRM_Utils_Array::value('weight', $b) < CRM_Utils_Array::value('weight', $a) ? TRUE : FALSE;
}