You are here

function uc_addresses_delete_address_confirm_form in Ubercart Addresses 5

Same name and namespace in other branches
  1. 5.2 uc_addresses.module \uc_addresses_delete_address_confirm_form()
  2. 6.2 uc_addresses.pages.inc \uc_addresses_delete_address_confirm_form()
  3. 6 uc_addresses.module \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

$uid 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 1128

Code

function uc_addresses_delete_address_confirm_form($uid, $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(
      $uid,
      $aid,
    ),
  );
  return $form;
}