You are here

function commerce_option_delete_confirm_submit in Commerce Product Option 7.2

Submit callback for commerce_option_delete_confirm form().

File

./commerce_option.admin.inc, line 171

Code

function commerce_option_delete_confirm_submit($form, &$form_state) {
  $option = $form_state['commerce_option'];
  entity_delete('commerce_option', $option->option_id);
  drupal_set_message(t('The option with id %id has been deleted.', array(
    '%id' => $option->option_id,
  )));
  $form_state['redirect'] = 'admin/commerce/products/options';
}