You are here

function uc_addresses_delete_address_confirm_form in Ubercart Addresses 6

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

Get the submit buttons to confirm deletion of a user's address.

Parameters

$form_state The state of the form.:

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

$address 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 1197

Code

function uc_addresses_delete_address_confirm_form(&$form_state, $address_user, $address) {
  $form['stored_values'] = array(
    '#type' => 'value',
    '#value' => array(
      'user' => $address_user,
      'address' => $address,
    ),
  );

  // The buttons
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => variable_get('uc_addresses_delete_button', t('Delete address')),
    '#suffix' => l(t('Cancel'), 'user/' . $address_user->uid . '/addresses/'),
  );
  return $form;
}