function invisimail_field_formatter_view in Invisimail 7
Implements callback_field_formatter_view().
File
- ./
invisimail.module, line 417 - This module provides a filter that will search content for email addresses and replace them with their ascii equivalents before display. This is not a complete protection from spam harvesters, but it is some help.
Code
function invisimail_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
$element = array();
$settings = $display['settings'];
foreach ($items as $delta => $item) {
$element[$delta] = array(
'#markup' => invisimail_encode_email($item['email'], $settings['encoder'], $settings),
);
}
return $element;
}