You are here

function site_verify_validate_page_google in Site verification 6

Same name and namespace in other branches
  1. 7.2 site_verify.admin.inc \site_verify_validate_page_google()
  2. 7 site_verify.admin.inc \site_verify_validate_page_google()

File

./site_verify.admin.inc, line 248

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.'));
  }
}