You are here

function CALLBACK_addressfield_format_callback in Address Field 7

Format generation callback.

Parameters

$format: The address format being generated.

$address: The address this format is generated for.

$context: An associative array of context information pertaining to how the address format should be generated. If no mode is given, it will initialize to the default value. The remaining context keys should only be present when the address format is being generated for a field:

  • mode: either 'form' or 'render'; defaults to 'render'.
  • field: the field info array.
  • instance: the field instance array.
  • langcode: the langcode of the language the field is being rendered in.
  • delta: the delta value of the given address.

Related topics

File

./addressfield.api.php, line 28
API documentation for Addressfield.

Code

function CALLBACK_addressfield_format_callback(&$format, $address, $context = array()) {

  // No example.
}