function _antispam_spaminess_bar in AntiSpam 7
Same name and namespace in other branches
- 6 antispam.admin.inc \_antispam_spaminess_bar()
Parameters
$spaminess float: Value between (0 to 1) or null.
File
- ./
antispam.admin.inc, line 636 - The antispam admin theme.
Code
function _antispam_spaminess_bar($spaminess) {
if (empty($spaminess)) {
return;
}
else {
$ispaminess = (int) ($spaminess * 100);
}
$output = '<div style="width:100px; background-color: #eee;">';
$output .= '<div style="width:' . $ispaminess . 'px; color: #000; background: url(';
$output .= base_path() . drupal_get_path('module', 'antispam');
$output .= '/spaminess.jpg) center left; padding:0px 2px; font-size: 9px">';
$output .= $spaminess;
$output .= '</div></div>';
return $output;
}