You are here

function geo_filter_filter in Graceful Email Obfuscation Filter 6

Implementation of hook_filter()

Replaces email address text with name[at]domain[dot]tld Replaces mailto: links with contact form redirect

Parameters

string $op:

int $delta:

int $format:

string $text The text passed to the filter:

Return value

string

File

./geo_filter.module, line 81

Code

function geo_filter_filter($op, $delta = 0, $format = -1, $text = '') {
  switch ($op) {
    case 'list':
      return array(
        0 => t('Email link obfuscator'),
      );
    case 'description':
      return t('Hides email addresses and mailto: links from spam bots.');
    case 'prepare':
      return $text;
    case 'process':
      return geo_filter_obfuscate($text, $format);
    case 'settings':
      return _geo_filter_filter_settings($format);
  }
}