You are here

function addressfield_format_address_hide_locality in Address Field 7

Format callback.

See also

CALLBACK_addressfield_format_callback()

1 string reference to 'addressfield_format_address_hide_locality'
address-hide-locality.inc in plugins/format/address-hide-locality.inc

File

plugins/format/address-hide-locality.inc, line 20

Code

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