simpletest_result_status_image($status)Get the appropriate image for the status.
$status Status string, either: pass, fail, exception.
HTML image or false.
modules/simpletest/simpletest.pages.inc, line 405
<?php
function simpletest_result_status_image($status) {
// $map does not use drupal_static() as its value never changes.
static $map;
if (!isset($map)) {
$map = array(
'pass' => theme('image', array('path' => 'misc/watchdog-ok.png', 'alt' => t('Pass'))),
'fail' => theme('image', array('path' => 'misc/watchdog-error.png', 'alt' => t('Fail'))),
'exception' => theme('image', array('path' => 'misc/watchdog-warning.png', 'alt' => t('Exception'))),
'debug' => theme('image', array('path' => 'misc/watchdog-warning.png', 'alt' => t('Debug'))),
);
}
if (isset($map[$status])) {
return $map[$status];
}
return FALSE;
}
?>