You are here

function _cleantalk_get_ws in Anti Spam by CleanTalk 8

Same name and namespace in other branches
  1. 7 cleantalk.module \_cleantalk_get_ws()
  2. 7.2 cleantalk.module \_cleantalk_get_ws()

Cleantalk inner function - gets working server.

2 calls to _cleantalk_get_ws()
_cleantalk_check_spam in ./cleantalk.module
Cleantalk inner function - performs antispam checking.
_cleantalk_send_feedback in ./cleantalk.module
Cleantalk inner function - sends feedback to server.

File

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

Code

function _cleantalk_get_ws() {
  return array(
    'work_url' => \Drupal::config('cleantalk.settings')
      ->get('cleantalk_work_url'),
    'server_url' => \Drupal::config('cleantalk.settings')
      ->get('cleantalk_server_url'),
    'server_ttl' => \Drupal::config('cleantalk.settings')
      ->get('cleantalk_server_ttl'),
    'server_changed' => \Drupal::config('cleantalk.settings')
      ->get('cleantalk_server_changed'),
  );
}