* @param int $profileID
* @param int $optionsBehaviour
* 0 = don't resolve, 1 = resolve non-aggressively, 2 = resolve aggressively - ie include country & state.
- * @param $is_flush
+ * @param bool $is_flush
*
* @return array|void
*/
if (isset($profileFields[$profileID])) {
return $profileFields[$profileID];
}
- $fields = civicrm_api3('uf_field', 'get', ['uf_group_id' => $profileID]);
+ $fields = civicrm_api3('uf_field', 'get', ['uf_group_id' => $profileID, 'options' => ['limit' => 0]]);
$entities = [];
foreach ($fields['values'] as $field) {
if (!$field['is_active']) {
*/
}
}
+ $profileFields[$profileID] = $profileFields[$profileID] ?? [];
uasort($profileFields[$profileID], "_civicrm_api3_order_by_weight");
return $profileFields[$profileID];
}
* 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
+ * @param array $field
*
* @return array
*/
*
* e.g getfields response incl 'membership_type_id' - with api.aliases = 'membership_type'
* returned array will include both as keys (with the same values)
- * @param $entity
+ * @param string $entity
*
* @return array
*/