You are here

function site_verify_output in Site verification 7

Same name and namespace in other branches
  1. 6 site_verify.module \site_verify_output()
  2. 7.2 site_verify.module \site_verify_output()

Output the page contents for a file-based custom verification page.

1 string reference to 'site_verify_output'
site_verify_menu in ./site_verify.module
Implements hook_menu().

File

./site_verify.module, line 209
Site Verify provides a tool for verification codes (meta tags or custom pages) to be added to the site, for verification with external search engines.

Code

function site_verify_output($svid) {
  $verification = site_verify_load($svid);
  if ($verification['file_contents'] && $verification['engine']['file_contents']) {
    echo $verification['file_contents'];
  }
  else {
    drupal_set_title(t('Verification page'));
    return t('This is a verification page for the @title search engine.', array(
      '!title' => $verification['engine']['name'],
    ));
  }
}