You are here

function invisimail_encoder_js_entities_settings in Invisimail 7

Settings form callback for the js_entities encoder.

1 string reference to 'invisimail_encoder_js_entities_settings'
invisimail_invisimail_encoder_info in ./invisimail.module
Implements hook_invisimail_encoder_info().

File

./invisimail.module, line 515
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_encoder_js_entities_settings($form, &$form_state, $settings) {
  $element['link'] = array(
    '#type' => 'checkbox',
    '#title' => t('Automatically create links from email addresses.'),
    '#default_value' => $settings['link'],
    '#description' => t('Selecting "Automatically create links" will convert email addresses into a clickable "mailto:" link.'),
  );
  return $element;
}