static function Helper::api_key__is_correct in Anti Spam by CleanTalk 8.3
* Check if api key is correct *
Return value
bool
1 call to Helper::api_key__is_correct()
- CleantalkSettingsForm::validateForm in src/
Form/ CleantalkSettingsForm.php - Form validation handler.
File
- src/
lib/ Cleantalk/ Common/ Helper.php, line 679
Class
- Helper
- Cleantalk's hepler class
Namespace
Drupal\cleantalk\lib\Cleantalk\CommonCode
static function api_key__is_correct($api_key) {
return $api_key && preg_match('/^[a-z\\d]{3,15}$/', $api_key) ? true : false;
}