You are here

function views_watchdog_get_type_list in Views Watchdog 7.4

Helper function to retrieve list of types.

1 string reference to 'views_watchdog_get_type_list'
views_watchdog_views_data in views/views_watchdog.views.inc
Implements of hook_views_data().

File

./views_watchdog.module, line 39
Extends the Views module and allows to create custom lists of log entries.

Code

function views_watchdog_get_type_list() {
  return db_query('SELECT DISTINCT(type) FROM {watchdog} ORDER BY type')
    ->fetchAllKeyed(0, 0);
}