You are here

function addressfield_format_address_hide_administrative_area in Address Field 7

Format callback.

See also

CALLBACK_addressfield_format_callback()

1 string reference to 'addressfield_format_address_hide_administrative_area'
address-hide-administrative-area.inc in plugins/format/address-hide-administrative-area.inc

File

plugins/format/address-hide-administrative-area.inc, line 20

Code

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