function _cleantalk_get_checkjs_value in Anti Spam by CleanTalk 8
Same name and namespace in other branches
- 7 cleantalk.module \_cleantalk_get_checkjs_value()
- 7.2 cleantalk.module \_cleantalk_get_checkjs_value()
Cleantalk inner function - gets JavaScript checking value.
5 calls to _cleantalk_get_checkjs_value()
- BootSubscriber::onEvent in src/
EventSubscriber/ BootSubscriber.php - cleantalk_boot in ./
cleantalk.module - Implements hook_boot()
- cleantalk_page_build in ./
cleantalk.module - cleantalk_preprocess_page in ./
cleantalk.module - _cleantalk_check_spam in ./
cleantalk.module - Cleantalk inner function - performs antispam checking.
File
- ./
cleantalk.module, line 751 - Main CleanTalk integration module functions.
Code
function _cleantalk_get_checkjs_value() {
return md5(\Drupal::config('cleantalk.settings')
->get("cleantalk_authkey") . '+' . \Drupal::config('system.site')
->get("mail"));
}