You are here

function uc_taxes_delete_form_submit in Ubercart 7.3

Same name and namespace in other branches
  1. 6.2 uc_taxes/uc_taxes.admin.inc \uc_taxes_delete_form_submit()

Form submission handler for uc_taxes_delete_form().

See also

uc_taxes_delete_form()

File

uc_taxes/uc_taxes.admin.inc, line 275
Taxes administration menu items.

Code

function uc_taxes_delete_form_submit($form, &$form_state) {

  // Delete the tax rate.
  uc_taxes_rate_delete($form_state['values']['rate_id']);

  // Display a message and redirect back to the overview.
  drupal_set_message(t('Tax rate %name deleted.', array(
    '%name' => $form_state['values']['name'],
  )));
  $form_state['redirect'] = 'admin/store/settings/taxes';
}