address-hide-street.inc in Address Field 7
File
plugins/format/address-hide-street.incView source
<?php
/**
* @file
* Hide the street address fields.
*/
$plugin = array(
'title' => t('Hide the street address'),
'format callback' => 'addressfield_format_address_hide_street',
'type' => 'address',
'weight' => -85,
);
/**
* Format callback.
*
* @see CALLBACK_addressfield_format_callback()
*/
function addressfield_format_address_hide_street(&$format, $address, $context = array()) {
if (isset($format['street_block'])) {
$format['street_block']['#access'] = FALSE;
}
}
Functions
Name![]() |
Description |
---|---|
addressfield_format_address_hide_street | Format callback. |