function views_watchdog_get_severity_icon in Views Watchdog 6
1 call to views_watchdog_get_severity_icon()
File
- ./
views_watchdog.module, line 94 - Allows users to create customized lists and queries from watchdog entries.
Code
function views_watchdog_get_severity_icon($code, $path) {
static $severity_icon = array();
if (!isset($severity_icon[$code])) {
$path = trim($path);
$title = views_watchdog_get_severity($code, 'title');
$severity_icon[$code] = !empty($path) && is_file($path) ? theme('image', $path, $title, $title) : '';
}
return $severity_icon[$code];
}