_watchdog_get_message_types

  1. drupal
    1. 4.7
    2. 5 watchdog.module
Versions
4.7 – 5 _watchdog_get_message_types()

Code

modules/watchdog.module, line 188

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