public function CommerceDiscountControllerExportable::delete in Commerce Discount 7
Overridden to handle deletion of rules when a discount is deleted.
Overrides EntityAPIControllerExportable::delete
File
- includes/
commerce_discount.controller.inc, line 78 - The controller for the discount entity containing the CRUD operations.
Class
- CommerceDiscountControllerExportable
- Controller for discount entities; Overrides CRUD operations.
Code
public function delete($ids, DatabaseTransaction $transaction = NULL) {
parent::delete($ids, $transaction);
// Rebuild rules config.
entity_defaults_rebuild(array(
'rules_config',
));
}