public static function CleantalkFuncs::_cleantalk_check_form_submit_handlers in Anti Spam by CleanTalk 7.5
Same name and namespace in other branches
- 7.4 src/CleantalkFuncs.php \CleantalkFuncs::_cleantalk_check_form_submit_handlers()
Cleantalk inner function - check form handlers for save to prevent checking drafts/preview.
6 calls to CleantalkFuncs::_cleantalk_check_form_submit_handlers()
- cleantalk_validate_comment in ./
cleantalk.module - Cleantalk comment validation function.
- cleantalk_validate_contact_message in ./
cleantalk.module - Cleantalk contact message validation function.
- cleantalk_validate_forum in ./
cleantalk.module - Cleantalk forum validation function.
- cleantalk_validate_newsletter in ./
cleantalk.module - Cleantalk newsletter validation function.
- cleantalk_validate_register in ./
cleantalk.module - Cleantalk registration validation function.
File
- src/
CleantalkFuncs.php, line 785
Class
- CleantalkFuncs
- Cleantalk class create request
Code
public static function _cleantalk_check_form_submit_handlers($submitHandlers) {
if ($submitHandlers && is_array($submitHandlers)) {
foreach ($submitHandlers as $handler) {
if ($handler === 'submit') {
return true;
}
}
}
return false;
}