You are here

function commerce_gc_delete_transaction_form in Commerce GC 7

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

File

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

Code

function commerce_gc_delete_transaction_form($form, &$form_state, $coupon, $transaction) {
  $form_state['commerce_gc_transaction'] = $transaction;
  $form_state['commerce_coupon'] = $coupon;
  $form['#submit'][] = 'commerce_gc_delete_transaction_form_submit';
  $form = confirm_form($form, t('Are you sure you want to delete this transaction?'), 'giftcards/' . $coupon->coupon_id . '/transactions/' . $transaction->transaction_id);
  return $form;
}