function _dblog_get_message_types

_dblog_get_message_types()

Gathers a list of uniquely defined database log message types.

Return value

array List of uniquely defined database log message types.

File

modules/dblog/dblog.module, line 130
System monitoring and logging for administrators.

Code

function _dblog_get_message_types() {
  $types = array();

  $result = db_query('SELECT DISTINCT(type) FROM {watchdog} ORDER BY type');
  foreach ($result as $object) {
    $types[] = $object->type;
  }

  return $types;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!dblog!dblog.module/function/_dblog_get_message_types/7.x