function theme_email_formatter_spamspan in Email Field 6
Theme function for 'spamspan' email field formatter.
File
- ./
email.module, line 132
Code
function theme_email_formatter_spamspan($element) {
if (empty($element['#item']['safe'])) {
return '';
}
if (module_exists('spamspan')) {
return spamspan($element['#item']['email']);
}
else {
return l($element['#item']['email'], "mailto:" . $element['#item']['email']);
}
}