function _dblog_get_message_types
Same name in other branches
- 9 core/modules/dblog/dblog.module \_dblog_get_message_types()
- 8.9.x core/modules/dblog/dblog.module \_dblog_get_message_types()
- 10 core/modules/dblog/dblog.module \_dblog_get_message_types()
- 11.x core/modules/dblog/dblog.module \_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.
1 call to _dblog_get_message_types()
- dblog_filters in modules/
dblog/ dblog.admin.inc - Creates a list of database log administration filters that can be applied.
File
-
modules/
dblog/ dblog.module, line 130
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.