function get_data_from_submit in Anti Spam by CleanTalk 8
Same name and namespace in other branches
- 7 cleantalk.module \get_data_from_submit()
- 7.2 cleantalk.module \get_data_from_submit()
Inner function - Finds and returns pattern in string
Return value
null|bool
1 call to get_data_from_submit()
File
- ./
cleantalk.module, line 1286 - Main CleanTalk integration module functions.
Code
function get_data_from_submit($value = null, $field_name = null) {
if (!$value || !$field_name || !is_string($value)) {
return false;
}
if (preg_match("/[a-z0-9_\\-]*" . $field_name . "[a-z0-9_\\-]*\$/", $value)) {
return true;
}
}