public static function CleantalkFuncs::_cleantalk_check_form_submit_handlers in Anti Spam by CleanTalk 7.4
Same name and namespace in other branches
- 7.5 src/CleantalkFuncs.php \CleantalkFuncs::_cleantalk_check_form_submit_handlers()
Cleantalk inner function - check form handlers for save to prevent checking drafts/preview.
5 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_register in ./
cleantalk.module - Cleantalk registration validation function.
- cleantalk_validate_webform in ./
cleantalk.module - Cleantalk webform 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;
}