You are here

function _spam_error_link in Spam 6

Same name and namespace in other branches
  1. 5.3 spam.module \_spam_error_link()

Helper function, generate a link for reporting mis-filtered content.

1 call to _spam_error_link()
spam_denied_page in ./spam.module
Generate an error message informing the user that their posting has been blocked by the spam filter. Provide a dynamic link for reporting if their posting was blocked in error.

File

./spam.module, line 1599
Spam module, v3 Copyright(c) 2006-2008 Jeremy Andrews <jeremy@tag1consulting.com>. All rights reserved.

Code

function _spam_error_link($text) {
  if ($text && is_array(unserialize($text))) {
    return l(t('Report spam filter error.'), "spam/denied/error/" . md5($text) . '/' . _spam_sign($text));
  }
  else {
    return t('Unable to generate link.  Please be sure you have cookies enabled and try your posting again.');
  }
}