public static function Cleaner::cleanerWatchdogClear in Cleaner 7
Watchdog clearing handler.
2 calls to Cleaner::cleanerWatchdogClear()
- cleaner_cleaner_run in ./
cleaner.module - Implements hook_cleaner_run().
- hook_cleaner_run in ./
cleaner.api.php - Cleaner execution hook.
File
- ./
class.Cleaner.php, line 93 - Cleaner base class file.
Class
- Cleaner
- Class Cleaner.
Code
public static function cleanerWatchdogClear() {
// Check for table just in case.
if (db_table_exists('watchdog')) {
if (db_query("TRUNCATE {watchdog}")
->execute()) {
self::cleanerLog('Cleared watchdog by Cleaner.');
}
}
}