You are here

function views_watchdog_get_type in Views Watchdog 6

1 call to views_watchdog_get_type()
views_handler_filter_watchdog_type::get_value_options in views/handlers/views_handler_filter_watchdog_type.inc

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;
}