function commerce_pricelist_item_edit_delete in Commerce Pricelist 7
Form deletion handler.
@todo: 'Are you sure?' message.
1 string reference to 'commerce_pricelist_item_edit_delete'
- commerce_pricelist_item_form in includes/
commerce_pricelist.admin.inc - Form function to create an commerce_pricelist_list entity.
File
- includes/
commerce_pricelist.admin.inc, line 779 - Summary
Code
function commerce_pricelist_item_edit_delete($form, &$form_state) {
$entity = $form_state['values']['entity'];
commerce_pricelist_item_delete($entity->item_id);
drupal_set_message(t('The entity %item_description (ID %id) has been deleted', array(
'%item_description' => $entity->item_id,
'%id' => $entity->item_id,
)));
}