function views_watchdog_get_type in Views Watchdog 6
1 call to views_watchdog_get_type()
File
- ./
views_watchdog.module, line 108 - Allows users to create customized lists and queries from watchdog entries.
Code
function views_watchdog_get_type() {
static $type = array();
if (!$type) {
$result = db_query('SELECT DISTINCT(type) FROM {watchdog} ORDER BY type');
while ($object = db_fetch_object($result)) {
$type[] = $object->type;
}
}
return $type;
}