You are here

function addressfield_format_address_hide_postal_code in Address Field 7

Format callback.

See also

CALLBACK_addressfield_format_callback()

1 string reference to 'addressfield_format_address_hide_postal_code'
address-hide-postal-code.inc in plugins/format/address-hide-postal-code.inc

File

plugins/format/address-hide-postal-code.inc, line 20

Code

function addressfield_format_address_hide_postal_code(&$format, $address, $context = array()) {
  if (isset($format['locality_block']['postal_code'])) {
    $format['locality_block']['postal_code']['#access'] = FALSE;
  }
}