function invisimail_encode_email in Invisimail 7
Encodes a single email address using the specified encoder.
Parameters
string $email: The email address to encode.
string $encoder: The machine name of the encoder to use.
array $settings: An array of settings for this encoder. If not specified, the encoder defaults will be used.
Return value
string The encoded email address.
1 call to invisimail_encode_email()
- invisimail_field_formatter_view in ./
invisimail.module - Implements callback_field_formatter_view().
File
- ./
invisimail.module, line 388 - 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_encode_email($email, $encoder, array $settings = array()) {
$encoder_info = invisimail_get_encoder($encoder);
$encoder_settings = $settings + $encoder_info['default settings'];
return $encoder_info['encode callback']($email, $settings, FALSE);
}