_watchdog_get_message_types

5 watchdog.module _watchdog_get_message_types()

1 call to _watchdog_get_message_types()

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;
}
Login or register to post comments