--- xmlsitemap.module	2007-06-27 22:03:54.000000000 -0500
+++ xmlsitemap.new	2007-09-22 19:46:34.000000000 -0500
@@ -70,6 +70,15 @@ function xmlsitemap_menu($may_cache) {
         'access' => $access_content,
       );
     }
+    if ($verify = variable_get('xmlsitemap_yahoo_verify', '')) {
+      $items[] = array(
+        'path' => $verify,
+        'title' => t('Yahoo verification page'),
+        'callback' => 'xmlsitemap_yahoo_verify',
+        'type' => MENU_CALLBACK,
+        'access' => $access_content,
+      );
+    }
   }
   else {
     for ($chunk = 0; $chunk < variable_get('xmlsitemap_chunk_count', 0); ++$chunk) {
@@ -94,6 +103,13 @@ function xmlsitemap_verify() {
 }
 
 /**
+ * Menu callback; display verification page for Yahoo.
+ */
+function xmlsitemap_yahoo_verify() {
+  echo variable_get('xmlsitemap_yahoo_verify_string', '');
+}
+
+/**
  * Implementation of hook_form_alter().
  */
 function xmlsitemap_form_alter($form_id, &$form) {
@@ -327,6 +343,18 @@ function xmlsitemap_admin_settings() {
     '#default_value' => variable_get('xmlsitemap_yahoo_url', 'http://search.yahooapis.com/SiteExplorerService/V1/ping?sitemap='. url('sitemap.xml', NULL, NULL, TRUE)),
     '#description' => t('The URL to submit the site map to.'),
   );
+  $form['search_engines']['yahoo']['xmlsitemap_yahoo_verify'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Verification link'),
+    '#default_value' => variable_get('xmlsitemap_yahoo_verify', ''),
+    '#description' => t('Yahoo will ask you to verify that you control this site by creating a page with a certain name. Enter that name here and the XML Sitemap module will hook that filename. Note that this will only work if you have clean URLs enabled.'),
+  ); 
+  $form['search_engines']['yahoo']['xmlsitemap_yahoo_verify_string'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Verification string'),
+    '#default_value' => variable_get('xmlsitemap_yahoo_verify_string', ''),
+    '#description' => t('Yahoo will ask you to put a string in the verify file.  Enter it here.'),
+  );  
   $form['search_engines']['ask.com'] = array(
     '#type' => 'fieldset',
     '#title' => t('Ask.com'),
