Commit 523cd0de authored by Matthias Hutterer's avatar Matthias Hutterer
Browse files

Issue #1064974 by sheld0r, szantog, dzoll7: Fixed SpamSpan formatter.

parent b6ac2efe
......@@ -122,7 +122,7 @@ function email_field_formatter_view($object_type, $object, $field, $instance, $l
case 'email_spamspan':
foreach ($items as $delta => $item) {
if (module_exists('spamspan')) {
$element[$delta] = spamspan($item['email']);
$element[$delta] = array('#markup' => spamspan($item['email']));
}
else {
$output = l($item['email'], 'mailto:' . $item['email']);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment