You are here

function uc_addresses_field_get in Ubercart Addresses 7

Entity API getter callback for an address field.

Parameters

UcAddressesAddress $address: An address object.

array $options: Options are ignored, but it is a param that is given by Entiy API.

string $name: The name of the field to get.

Return value

mixed The address field's raw value.

1 string reference to 'uc_addresses_field_get'
uc_addresses_entity_property_info_alter in ./uc_addresses.module
Implements hook_entity_property_info_alter().

File

./uc_addresses.module, line 596
Adds user profile address support to Ubercart.

Code

function uc_addresses_field_get(UcAddressesAddress $address, $options, $name) {
  return $address
    ->getField($name);
}