You are here

function payment_form_payment_delete in Payment 7

Implements form build callback: payment deletion form.

1 string reference to 'payment_form_payment_delete'
payment_menu in ./payment.module
Implements hook_menu().

File

./payment.ui.inc, line 210
The Payment user interface.

Code

function payment_form_payment_delete(array $form, array &$form_state, Payment $payment) {
  $form_state['payment'] = $payment;
  return confirm_form($form, t('Do you really want to delete payment !pid?', array(
    '!pid' => $payment->pid,
  )), 'payment/' . $payment->pid, t('Existing information that uses this payment, such as a webshop order, may become unusable. This action cannot be undone.'), t('Delete payment'));
}