You are here

function spamspan_footer in SpamSpan filter 5

Implementation of hook_footer().

File

./spamspan.module, line 113
This module implements the spamspan technique (http://www.spamspan.com ) for hiding email addresses from spambots. If javascript is disabled on the client-side, addresses appear as example [at] example [dot] com.

Code

function spamspan_footer($main = 0) {

  // Add the javascript to each page
  drupal_add_js(drupal_get_path("module", "spamspan") . '/spamspan.compressed.js');

  // pass necessary variables to the javascript
  drupal_add_js(array(
    'spamspan' => array(
      'm' => 'spamspan',
      'u' => variable_get('spamspan_userclass', 'u'),
      'd' => variable_get('spamspan_domainclass', 'd'),
      't' => variable_get('spamspan_anchorclass', 't'),
    ),
  ), 'setting');
}