function commerce_backoffice_product_variation_type_delete_form in Commerce Backoffice 7
Form callback: confirmation form for deleting a product variation type.
Parameters
$product_type: The product variation type array to be deleted.
See also
1 string reference to 'commerce_backoffice_product_variation_type_delete_form'
- commerce_backoffice_product_variation_type_delete_form_wrapper in includes/
commerce_backoffice_product.product_variation_types.inc - Form callback wrapper: confirmation form for deleting a product variation type.
File
- includes/
commerce_backoffice_product.product_variation_types.inc, line 350 - Product variation specific copy of commerce_product_ui/includes/commerce_product_ui.types.inc and commerce_product_ui/includes/commerce_product_ui.forms.inc.
Code
function commerce_backoffice_product_variation_type_delete_form($form, &$form_state, $product_type) {
$form_state['product_type'] = $product_type;
$form['#submit'][] = 'commerce_backoffice_product_variation_type_delete_form_submit';
$form = confirm_form($form, t('Are you sure you want to delete the %name product variation type?', array(
'%name' => $product_type['name'],
)), 'admin/commerce/config/product-variation-types', '<p>' . t('This action cannot be undone.') . '</p>', t('Delete'), t('Cancel'), 'confirm');
return $form;
}