You are here

function commerce_discount_form_submit_delete in Commerce Discount 7

Form API submit callback for the delete button.

1 string reference to 'commerce_discount_form_submit_delete'
commerce_discount_form in includes/commerce_discount.admin.inc
Form callback: create or edit a discount.

File

includes/commerce_discount.admin.inc, line 403
Commerce discount editing UI.

Code

function commerce_discount_form_submit_delete(&$form, &$form_state) {
  $form_state['redirect'] = 'admin/commerce/discounts/manage/' . $form_state['commerce_discount']->name . '/delete';
}