You are here

function cleantalk_install in Anti Spam by CleanTalk 8

Same name and namespace in other branches
  1. 7.5 cleantalk.install \cleantalk_install()
  2. 7 cleantalk.module \cleantalk_install()
  3. 7.2 cleantalk.install \cleantalk_install()
  4. 7.4 cleantalk.install \cleantalk_install()

File

./cleantalk.module, line 1267
Main CleanTalk integration module functions.

Code

function cleantalk_install() {
  $spam_check = array();
  $spam_check['type'] = 'comment';
  $spam_check['sender_email'] = 'good@cleantalk.org';
  $spam_check['sender_nickname'] = 'CleanTalk';
  $spam_check['message_title'] = '';
  $spam_check['message_body'] = 'This message is a test to check the connection to the CleanTalk servers.';
  $spam_check['example_title'] = '';
  $spam_check['example_body'] = '';
  $spam_check['example_comments'] = '';
  $spam_result = _cleantalk_check_spam($spam_check);
}