function uc_addresses_delete_address_confirm_form in Ubercart Addresses 6.2
Same name and namespace in other branches
- 5.2 uc_addresses.module \uc_addresses_delete_address_confirm_form()
- 5 uc_addresses.module \uc_addresses_delete_address_confirm_form()
- 6 uc_addresses.module \uc_addresses_delete_address_confirm_form()
- 7 uc_addresses.pages.inc \uc_addresses_delete_address_confirm_form()
Gets the submit buttons to confirm deletion of a user's address.
Parameters
array $form_state: The state of the form.
object $user: The user who "owns" the address.
UcAddressesAddress $address: The address we are deleting.
Return value
string The buttons for the form (as a string).
1 string reference to 'uc_addresses_delete_address_confirm_form'
- uc_addresses_delete_address_confirm in ./
uc_addresses.pages.inc - Displays a confirmation page before deleting an address.
File
- ./
uc_addresses.pages.inc, line 539 - Page callbacks for viewing, adding, editing, and deleting addresses.
Code
function uc_addresses_delete_address_confirm_form(&$form_state, $address_user, UcAddressesAddress $address) {
$form['stored_values'] = array(
'#type' => 'value',
'#value' => array(
'user' => $address_user,
'address' => $address,
),
);
return confirm_form($form, t('Delete address'), 'user/' . $address_user->uid . '/addresses/', (string) $address, variable_get('uc_addresses_delete_button', t('Delete address')), t('Cancel'));
}