You are here

function invisimail_invisimail_encoder_info in Invisimail 7

Implements hook_invisimail_encoder_info().

File

./invisimail.module, line 460
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_invisimail_encoder_info() {
  $encoders['html_entities'] = array(
    'label' => t('HTML entities'),
    'settings callback' => 'invisimail_encoder_html_entities_settings',
    'encode callback' => 'invisimail_encoder_html_entities_encode',
    'default settings' => array(
      'link' => 0,
    ),
  );
  $encoders['js_entities'] = array(
    'label' => t('Javascript-wrapped HTML entities'),
    'settings callback' => 'invisimail_encoder_js_entities_settings',
    'encode callback' => 'invisimail_encoder_js_entities_encode',
    'default settings' => array(
      'link' => 0,
    ),
  );
  return $encoders;
}