function _watchdog_get_message_types in Drupal 4
Same name and namespace in other branches
- 5 modules/watchdog/watchdog.module \_watchdog_get_message_types()
1 call to _watchdog_get_message_types()
- watchdog_overview in modules/
watchdog.module - Menu callback; displays a listing of log messages.
File
- modules/
watchdog.module, line 187 - System monitoring and logging for administrators.
Code
function _watchdog_get_message_types() {
$types = array();
$result = db_query('SELECT DISTINCT(type) FROM {watchdog} ORDER BY type');
while ($object = db_fetch_object($result)) {
$types[] = $object->type;
}
return $types;
}