function site_verify_validate_page_google in Site verification 7.2
Same name and namespace in other branches
- 6 site_verify.admin.inc \site_verify_validate_page_google()
- 7 site_verify.admin.inc \site_verify_validate_page_google()
File
- ./
site_verify.admin.inc, line 318
Code
function site_verify_validate_page_google($element, &$form_state) {
$value = strtolower(trim($element['#value']));
if ($value != '' && !preg_match('%\\Agoogle[\\da-f]+\\.html\\Z%', $value)) {
form_error($element, t('Invalid verification file.'));
}
}