function uc_addresses_delete_address_confirm in Ubercart Addresses 7
Same name and namespace in other branches
- 5.2 uc_addresses.module \uc_addresses_delete_address_confirm()
- 5 uc_addresses.module \uc_addresses_delete_address_confirm()
- 6.2 uc_addresses.pages.inc \uc_addresses_delete_address_confirm()
- 6 uc_addresses.module \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 - Implements hook_menu().
File
- ./
uc_addresses.pages.inc, line 481 - 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', array(
'help' => $help,
'form' => $form,
));
return $output;
}