/**
 * This hook allows you to act on addresses being loaded from the database.
 *
 * @param UcAddressesAddress $address
 *   The address object.
 * @param object $obj
 *   The fetched database record.
 *
 * @return void
 */
function hook_uc_addresses_address_load($address, $obj)
{
    // Example: set a value for my custom added field (through hook_uc_addresses_fields()).
    $address->setField('myfield', 'myvalue');
}
 /**
  * Sets value in the address object.
  *
  * The default is that just setField() will be called,
  * but other field handlers may want to handle the
  * value differently.
  *
  * @param mixed $value
  *   The value the field should get.
  *
  * @access public
  * @return void
  */
 public function setValue($value)
 {
     $this->address->setField($this->name, $value);
 }