public function WatchdogEntityController::delete in Better Watchdog UI 8
Same name and namespace in other branches
- 7.3 better_watchdog_ui_entity/better_watchdog_ui_entity.module \WatchdogEntityController::delete()
- 7 better_watchdog_ui_entity/better_watchdog_ui_entity.module \WatchdogEntityController::delete()
- 7.2 better_watchdog_ui_entity/better_watchdog_ui_entity.module \WatchdogEntityController::delete()
Override default delete function to invoke rules.
File
- better_watchdog_ui_entity/
better_watchdog_ui_entity.module, line 308 - 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('better_watchdog_ui_rules')) {
rules_invoke_event('better_watchdog_ui_watchdog_before_delete', current($this->entityCache));
}
parent::delete($ids, $transaction);
if (module_exists('better_watchdog_ui_rules')) {
rules_invoke_event('better_watchdog_ui_watchdog_after_delete', current($this->entityCache));
}
}