You are here

function _xmlsitemap_engines_verify in XML sitemap 5

Menu callback; display verification page.

Related topics

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 265
Define actions for Google, Yahoo!, Ask, and Bing.

Code

function _xmlsitemap_engines_verify($engine) {
  switch ($engine) {
    case 'google':
      print 'google-site-verification: ' . variable_get('xmlsitemap_engines_google_verify', '');
      break;
    case 'yahoo':
      print variable_get('xmlsitemap_engines_yahoo_verify_string', '');
      break;
    case 'bing':
      print '<?xml version="1.0"?>' . "\n";
      print "<users>\n";
      print '    <user>' . variable_get('xmlsitemap_engines_bing_verify_string', '') . "</user>\n";
      print "</users>\n";
      break;
  }
}