You are here

function uc_addresses_field_set in Ubercart Addresses 7

Entity API setter callback for an address field.

Parameters

UcAddressesAddress $address: An address object.

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

mixed $value: The value the field should be set to.

Return value

mixed The return value depends on the class that's being used. UcAddressesAddress and UcAddressesSchemaAddress return void.

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

File

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

Code

function uc_addresses_field_set(UcAddressesAddress $address, $name, $value) {
  return $address
    ->setField($name, $value);
}