You are here

function _spam_error_link in Spam 5.3

Same name and namespace in other branches
  1. 6 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 1534

Code

function _spam_error_link($text) {

  // TODO: Finish implementing error reporting functionality.

  //return t('Unable to generate error link.  Please email the site admins.');
  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.');
  }
}