You are here

public static function CleantalkFuncs::_cleantalk_get_submit_time in Anti Spam by CleanTalk 8.4

Same name and namespace in other branches
  1. 8.3 src/CleantalkFuncs.php \Drupal\cleantalk\CleantalkFuncs::_cleantalk_get_submit_time()
  2. 9.1.x src/CleantalkFuncs.php \Drupal\cleantalk\CleantalkFuncs::_cleantalk_get_submit_time()
1 call to CleantalkFuncs::_cleantalk_get_submit_time()
CleantalkFuncs::_cleantalk_check_spam in src/CleantalkFuncs.php
Cleantalk inner function - performs antispam checking.

File

src/CleantalkFuncs.php, line 63

Class

CleantalkFuncs
Cleantalk class create request

Namespace

Drupal\cleantalk

Code

public static function _cleantalk_get_submit_time($timestamp) {
  return self::_cleantalk_apbct_cookies_test() == 1 && $timestamp ? time() - (int) $timestamp : null;
}