function uc_taxes_delete_form_submit in Ubercart 6.2
Same name and namespace in other branches
- 7.3 uc_taxes/uc_taxes.admin.inc \uc_taxes_delete_form_submit()
Form submission handler for uc_taxes_delete_form().
See also
File
- uc_taxes/
uc_taxes.admin.inc, line 257 - 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';
}