You are here

function xmlsitemap_engines_verify in XML sitemap 5.2

1 string reference to 'xmlsitemap_engines_verify'
xmlsitemap_engines_menu in xmlsitemap_engines/xmlsitemap_engines.module
Implementation of hook_menu().

File

xmlsitemap_engines/xmlsitemap_engines.module, line 228
Defines actions for Google, Yahoo!, Ask, and Windows Live.

Code

function xmlsitemap_engines_verify($engine) {
  switch ($engine) {
    case 'google':
      print '<html>' . "\n";
      print '  <head>' . "\n";
      print '    <title>Hello, Google!</title>' . "\n";
      print '  </head>' . "\n";
      print '  <body>' . "\n";
      print '    <p>Hello, Google!</p>' . "\n";
      print '  </body>' . "\n";
      print '</html>' . "\n";
      break;
    case 'yahoo':
      print variable_get('xmlsitemap_engines_yahoo_verify_string', '');
      break;
    case 'live':
      print '<?xml version="1.0"?>' . "\n";
      print "<users>\n";
      print '    <user>' . variable_get('xmlsitemap_engines_live_verify_string', '') . "</user>\n";
      print "</users>\n";
      break;
  }
  drupal_page_footer();
  exit;
}