You are here

function spamspan_filter_info in SpamSpan filter 7

Implements hook_filter_info(). This function is called on every page so keep it fast and simple.

1 call to spamspan_filter_info()
spamspan_admin::__construct in ./spamspan_admin.php

File

./spamspan.module, line 67
This module implements the spamspan technique (http://www.spamspan.com ) for hiding email addresses from spambots.

Code

function spamspan_filter_info() {
  $filters['spamspan'] = array(
    'title' => t('SpamSpan email address encoding filter'),
    'description' => t('Attempt to hide email addresses from spam-bots.'),
    'process callback' => '_spamspan_filter_process',
    'settings callback' => '_spamspan_filter_settings',
    'tips callback' => '_spamspan_filter_tips',
    'default settings' => array(
      'spamspan_at' => ' [at] ',
      'spamspan_use_graphic' => 0,
      'spamspan_dot_enable' => 0,
      'spamspan_dot' => ' [dot] ',
      'spamspan_use_form' => 0,
      'spamspan_form_pattern' => '<a href="%url?goto=%email">%displaytext</a>',
      'spamspan_form_default_url' => 'contact',
      'spamspan_form_default_displaytext' => 'contact form',
    ),
  );
  return $filters;
}