public static function CleantalkFuncs::_cleantalk_set_ws in Anti Spam by CleanTalk 9.1.x
Same name and namespace in other branches
- 8.4 src/CleantalkFuncs.php \Drupal\cleantalk\CleantalkFuncs::_cleantalk_set_ws()
- 8.3 src/CleantalkFuncs.php \Drupal\cleantalk\CleantalkFuncs::_cleantalk_set_ws()
Cleantalk inner function - sets working server.
1 call to CleantalkFuncs::_cleantalk_set_ws()
- CleantalkFuncs::_cleantalk_check_spam in src/
CleantalkFuncs.php - Cleantalk inner function - performs antispam checking.
File
- src/
CleantalkFuncs.php, line 633
Class
- CleantalkFuncs
- Cleantalk class create request
Namespace
Drupal\cleantalkCode
public static function _cleantalk_set_ws($work_url = 'http://moderate.cleantalk.org', $server_ttl = 0, $server_changed = 0) {
\Drupal::state()
->set('cleantalk_work_url', $work_url);
\Drupal::state()
->set('cleantalk_server_ttl', $server_ttl);
\Drupal::state()
->set('cleantalk_server_changed', $server_changed);
}