function _watchdog_get_message_types in Drupal 5
Same name and namespace in other branches
- 4 modules/watchdog.module \_watchdog_get_message_types()
1 call to _watchdog_get_message_types()
- watchdog_form_overview in modules/
watchdog/ watchdog.module
File
- modules/
watchdog/ watchdog.module, line 241 - 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;
}