function uc_addresses_delete_address_confirm in Ubercart Addresses 6
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()
- 7 uc_addresses.pages.inc \uc_addresses_delete_address_confirm()
Display a confirmation page before deleting an address.
Parameters
$address_user The user who "owns" the address.:
$address The address to delete.:
1 string reference to 'uc_addresses_delete_address_confirm'
- uc_addresses_menu in ./
uc_addresses.module - Implementation of hook_menu().
File
- ./
uc_addresses.module, line 1099
Code
function uc_addresses_delete_address_confirm($address_user, $address) {
$uid = $address_user->uid;
$aid = $address->aid;
$form = drupal_get_form('uc_addresses_delete_address_confirm_form', $address_user, $address);
$help = variable_get('uc_addresses_delete_instructions', t('Are you are 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')),
)));
$panes = _address_pane_list();
foreach ($panes as $pane) {
if (variable_get('uc_addresses_pane_' . $pane['id'] . '_enabled', TRUE)) {
$func = $pane['callback'];
if (function_exists($func)) {
$return = $func('view', $address, NULL);
if (!is_null($return)) {
$data[$pane['title']] = $return;
}
}
}
}
$output = theme('uc_addresses_address_delete_confirm', $help, $data, $form);
return $output;
}