You are here

function cleantalk_install in Anti Spam by CleanTalk 7

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

File

./cleantalk.module, line 2196
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'] = '';
  if (!function_exists('drupal_json_encode')) {
    include_once DRUPAL_ROOT . '/includes/common.inc';
  }
  if (!function_exists('libraries_load')) {
    include_once drupal_get_path('module', 'libraries') . '/libraries.module';
  }
  $spam_result = _cleantalk_check_spam($spam_check);
}