You are here

function addressfield_tokens_property_names in Addressfield Tokens 7

Returns the names that have been configured for each address field.

5 calls to addressfield_tokens_property_names()
addressfield_tokens_admin_form in ./addressfield_tokens.admin.inc
Provides a form for configuring regional options for addresses.
addressfield_tokens_components in ./addressfield_tokens.module
Generates token components.
addressfield_tokens_token_info_alter in ./addressfield_tokens.tokens.inc
Implements hook_token_info_alter().
_webform_csv_data_addressfield in ./addressfield_tokens.components.inc
Format the submitted data of a component for CSV downloading.
_webform_csv_headers_addressfield in ./addressfield_tokens.components.inc
Return the header for this component to be displayed in a CSV file.

File

./addressfield_tokens.module, line 243
Main components.

Code

function addressfield_tokens_property_names() {
  $names = variable_get('addressfield_tokens_property_names', array());
  if (empty($names)) {
    $props = addressfield_data_property_info();
    foreach ($props as $name => $prop) {
      $names[$name] = $prop['label'];
    }
  }
  return $names;
}