You are here

function uc_payment_delete_confirm_form_submit in Ubercart 6.2

Same name and namespace in other branches
  1. 5 payment/uc_payment/uc_payment.module \uc_payment_delete_confirm_form_submit()
  2. 7.3 payment/uc_payment/uc_payment.admin.inc \uc_payment_delete_confirm_form_submit()

Form submission handler for uc_payment_delete_confirm_form().

See also

uc_payment_delete_confirm_form()

File

payment/uc_payment/uc_payment.admin.inc, line 544
Payment administration menu items.

Code

function uc_payment_delete_confirm_form_submit($form, &$form_state) {
  uc_payment_delete($form_state['values']['receipt_id']);
  drupal_set_message(t('Payment deleted.'));
  $form_state['redirect'] = 'admin/store/orders/' . $form_state['values']['order_id'] . '/payments';
}