function wf_crm_address_fields in Webform CiviCRM Integration 7.5
Same name and namespace in other branches
- 7.4 includes/utils.inc \wf_crm_address_fields()
These are the address fields this module supports
Return value
array
1 call to wf_crm_address_fields()
- wf_crm_webform_postprocess::reorderLocationValues in includes/
wf_crm_webform_postprocess.inc - Reorder submitted location values according to existing location values
File
- includes/
utils.inc, line 1768 - Webform CiviCRM module's common utility functions.
Code
function wf_crm_address_fields() {
$fields = [];
foreach (array_keys(wf_crm_get_fields()) as $key) {
if (strpos($key, 'address') === 0) {
$fields[] = substr($key, 8);
}
}
return $fields;
}