You are here

function commerce_pricelist_list_delete in Commerce Pricelist 7

Use the controller to delete the entity.

1 call to commerce_pricelist_list_delete()
commerce_pricelist_list_edit_delete in includes/commerce_pricelist.admin.inc
Form deletion handler.

File

./commerce_pricelist.module, line 838
Implements the basic functionality required for price lists

Code

function commerce_pricelist_list_delete($id) {
  $result = entity_delete('commerce_pricelist_list', $id);
  cache_clear_all('commerce_pricelist', 'cache', TRUE);
  return $result;
}