You are here

function wf_crm_address_fields in Webform CiviCRM Integration 7.4

Same name and namespace in other branches
  1. 7.5 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 1686
Webform CiviCRM module's common utility functions.

Code

function wf_crm_address_fields() {
  $fields = array();
  foreach (array_keys(wf_crm_get_fields()) as $key) {
    if (strpos($key, 'address') === 0) {
      $fields[] = substr($key, 8);
    }
  }
  return $fields;
}