You are here

function hook_uc_addresses_address_delete in Ubercart Addresses 7

Same name and namespace in other branches
  1. 6.2 uc_addresses.api.php \hook_uc_addresses_address_delete()

This hook allows you to respond to address deletion.

Parameters

UcAddressesAddress $address: The address object.

Return value

void

1 invocation of hook_uc_addresses_address_delete()
UcAddressesAddressBook::deleteOne in class/UcAddressesAddressBook.class.php
Deletes one address.

File

./uc_addresses.api.php, line 290
These hooks are invoked by the Ubercart Addresses module. @todo more documentation needed for hook_uc_addresses_field_handlers(). @todo Document the rest of the API.

Code

function hook_uc_addresses_address_delete($address) {

  // Example: delete the value from my table.
  db_delete('mydbtable')
    ->condition('aid', $address
    ->getId())
    ->execute();
}