function uc_addresses_delete_address_confirm_form in Ubercart Addresses 5.2
Same name and namespace in other branches
- 5 uc_addresses.module \uc_addresses_delete_address_confirm_form()
- 6.2 uc_addresses.pages.inc \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()
Get the submit buttons to confirm deletion of a user's address.
Parameters
$address_user The id of the user who "owns" the address.:
$aid id of the address we are deleting.:
Return value
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.module - Display a confirmation page before deleting an address.
File
- ./
uc_addresses.module, line 1159
Code
function uc_addresses_delete_address_confirm_form($address_user, $aid) {
// The buttons
$form['cancel'] = array(
'#type' => 'button',
'#value' => t('Cancel'),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => variable_get('uc_addresses_delete_button', t('Delete address')),
);
// Where we go if they say "OK"
$form['#submit'] = array(
'uc_addresses_delete_address_confirm_form_submit' => array(
$address_user,
$aid,
),
);
return $form;
}