You are here

function payment_form_payment_method_delete in Payment 7

Implements form build callback: payment method deletion form.

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

File

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

Code

function payment_form_payment_method_delete(array $form, array &$form_state, PaymentMethod $payment_method) {
  $form_state['payment_method'] = $payment_method;
  return confirm_form($form, t('Do you really want to delete payment method %title?', array(
    '%title' => $form_state['payment_method']->title_specific,
  )), 'admin/config/services/payment/method', t('Existing payments that use this payment method will become unusable. This action cannot be undone.'), t('Delete payment method'));
}