You are here

function uc_addresses_delete_address_confirm in Ubercart Addresses 6.2

Same name and namespace in other branches
  1. 5.2 uc_addresses.module \uc_addresses_delete_address_confirm()
  2. 5 uc_addresses.module \uc_addresses_delete_address_confirm()
  3. 6 uc_addresses.module \uc_addresses_delete_address_confirm()
  4. 7 uc_addresses.pages.inc \uc_addresses_delete_address_confirm()

Displays a confirmation page before deleting an address.

Parameters

object $address_user: The user who "owns" the address.

UcAddressesAddress $address: The address to delete.

Return value

string A themed HTML page.

1 string reference to 'uc_addresses_delete_address_confirm'
uc_addresses_menu in ./uc_addresses.module
Implementation of hook_menu().

File

./uc_addresses.pages.inc, line 480
Page callbacks for viewing, adding, editing, and deleting addresses.

Code

function uc_addresses_delete_address_confirm($address_user, UcAddressesAddress $address) {
  $uid = $address_user->uid;
  $aid = $address
    ->getId();
  $form = drupal_get_form('uc_addresses_delete_address_confirm_form', $address_user, $address);
  $help = variable_get('uc_addresses_delete_instructions', t('Are you sure you want to delete this address? Once deleted, the address cannot be recovered.', array(
    '!delete' => variable_get('uc_addresses_delete_button', t('Delete address')),
  )));
  $output = theme('uc_addresses_address_delete_confirm', $help, $form);
  return $output;
}