You are here

public function WatchdogEntityController::delete in Better Watchdog UI 7

Same name and namespace in other branches
  1. 8 better_watchdog_ui_entity/better_watchdog_ui_entity.module \WatchdogEntityController::delete()
  2. 7.3 better_watchdog_ui_entity/better_watchdog_ui_entity.module \WatchdogEntityController::delete()
  3. 7.2 better_watchdog_ui_entity/better_watchdog_ui_entity.module \WatchdogEntityController::delete()

Override default delete function to invoke rules.

Overrides EntityAPIController::delete

File

better_watchdog_ui_entity/better_watchdog_ui_entity.module, line 318
Provides a basic wrapper to database log entries, so they can be accessed as entities.

Class

WatchdogEntityController
Watchdog Controller class.

Code

public function delete($ids, DatabaseTransaction $transaction = NULL) {
  if (module_exists('rules')) {
    rules_invoke_event('better_watchdog_ui_watchdog_before_delete', current($this->entityCache));
  }
  parent::delete($ids, $transaction);
  if (module_exists('rules')) {
    rules_invoke_event('better_watchdog_ui_watchdog_after_delete', current($this->entityCache));
  }
}