You are here

function commerce_gc_delete_transaction_form_submit in Commerce GC 7

1 string reference to 'commerce_gc_delete_transaction_form_submit'
commerce_gc_delete_transaction_form in ./commerce_gc.module

File

./commerce_gc.module, line 400
Provides Giftcard coupon bundle, Giftcard Transaction entity and basic user interface elements.

Code

function commerce_gc_delete_transaction_form_submit(&$form, &$form_state) {
  commerce_gc_transaction_delete($form_state['commerce_gc_transaction']->transaction_id);
  drupal_set_message(t('Giftcard transaction successfully deleted.'));
  $form_state['redirect'] = 'giftcards/' . $form_state['commerce_coupon']->coupon_id . '/transactions/';
}