function _better_watchdog_ui_type_exists in Better Watchdog UI 7.3
Same name and namespace in other branches
- 8 better_watchdog_ui.module \_better_watchdog_ui_type_exists()
- 7 better_watchdog_ui.module \_better_watchdog_ui_type_exists()
- 7.2 better_watchdog_ui.module \_better_watchdog_ui_type_exists()
Helper function: check if type exists in DB.
1 call to _better_watchdog_ui_type_exists()
- better_watchdog_ui_views_pre_build in ./
better_watchdog_ui.module - Implements hook_views_pre_build().
File
- ./
better_watchdog_ui.module, line 80 - Provide views field and filter handlers, and allow bulk operations.
Code
function _better_watchdog_ui_type_exists($value) {
$query = db_select('watchdog', 'w');
$query
->fields('w');
$query
->condition('w.type', $value);
return $query
->execute()
->rowCount();
}