You are here

function invisimail_get_encoder in Invisimail 7

Gets the definition of the specified encoder.

Parameters

string $encoder: The machine name of the encoder to load.

Return value

An encoder definition array or NULL if not found.

6 calls to invisimail_get_encoder()
invisimail_encode_email in ./invisimail.module
Encodes a single email address using the specified encoder.
invisimail_encode_prepare in ./invisimail.module
Prepare callback for all invisimail encoders.
invisimail_encode_process in ./invisimail.module
Process callback for all invisimail encoders.
invisimail_encode_string in ./invisimail.module
Encodes all email addresses in a string using the specified encoder.
invisimail_field_formatter_settings_summary in ./invisimail.module
Implements callback_field_formatter_settings_summary().

... See full list

File

./invisimail.module, line 50
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_get_encoder($encoder) {
  $encoders = invisimail_get_encoders();
  return isset($encoders[$encoder]) ? $encoders[$encoder] : NULL;
}