function commerce_option_set_delete_form in Commerce Product Option 7
Form callback: confirmation form for deleting a option set.
Parameters
$option_set: The option set array to be deleted.
See also
1 string reference to 'commerce_option_set_delete_form'
- commerce_option_set_delete_form_wrapper in ./
commerce_option.module - Form callback wrapper: confirmation form for deleting a option set.
File
- includes/
commerce_option_set.forms.inc, line 106
Code
function commerce_option_set_delete_form($form, &$form_state, $option_set) {
$form_state['option_set'] = $option_set;
// Ensure this include file is loaded when the form is rebuilt from the cache.
$form_state['build_info']['files']['form'] = drupal_get_path('module', 'commerce_product_ui') . '/includes/commerce_product_ui.forms.inc';
$form['#submit'][] = 'commerce_option_set_delete_form_submit';
$form = confirm_form($form, t('Are you sure you want to delete the %name option set?', array(
'%name' => $option_set['name'],
)), 'admin/commerce/config/option-sets', '<p>' . t('This action cannot be undone.') . '</p>', t('Delete'), t('Cancel'), 'confirm');
return $form;
}