--- nodewords_verification_tags.module.1.11     2009-12-29 00:04:51.000000000 +0300
+++ nodewords_verification_tags.module  2010-10-08 16:49:56.280049294 +0400
@@ -52,6 +52,16 @@ function nodewords_verification_tags_nod
       'widget:label' => t('Yahoo! Site Explorer verification code'),
       'widget:permission' => 'edit Yahoo! Site Explorer verification meta tag',
     ),
+    'yandex_webmaster_tools' => array(
+      'tag:context:allowed' => array(NODEWORDS_TYPE_FRONTPAGE),
+      'tag:function:prefix' => 'nodewords_verification_tags_yandex_webmaster_tools',
+      'tag:template' => array(
+        'yandex-verification' => NODEWORDS_META,
+      ),
+      'widget:label' => t('Yandex verification code'),
+      'widget:permission' => 'edit Yandex verification meta tag',
+    ),
+
   );

   return $tags;
@@ -65,6 +75,7 @@ function nodewords_verification_tags_per
     'edit Bing Webmaster Center verification meta tag',
     'edit Google Webmaster Tools verification meta tag',
     'edit Yahoo! Site Explorer verification meta tag',
+    'edit Yandex verification meta tag',
   );
 }

@@ -123,6 +134,23 @@ function nodewords_verification_tags_yah
 }

 /**
+ * Set the form fields used to implement the options for the meta tag.
+ */
+function nodewords_verification_tags_yandex_webmaster_tools_form(&$form, $content, $options) {
+  $form['yandex_webmaster_tools'] = array(
+    '#tree' => TRUE,
+  );
+
+  $form['yandex_webmaster_tools']['value'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Yandex verification code'),
+    '#description' => t('<a href="http://webmaster.yandex.ru">Yandex Webmaster</a> will ask you to add a meta tag in your web site to provide you with an easy way to make your site more <a href="http://yandex.ru">Yandex</a>-friendly.') . $options['description'],
+    '#default_value' => empty($content['value']) ? '' : $content['value'],
+    '#maxlength' => variable_get('nodewords_max_size', 350),
+  );
+}
+
+/**
  * Set the meta tag content.
  */
 function nodewords_verification_tags_bing_webmaster_center_prepare(&$tags, $content, $options) {
@@ -150,5 +178,14 @@ function nodewords_verification_tags_yah
 }

 /**
+ * Set the meta tag content.
+ */
+function nodewords_verification_tags_yandex_webmaster_tools_prepare(&$tags, $content, $options) {
+  if (!empty($content['value'])) {
+    $tags['yandex_webmaster_tools:yandex-verification'] = $content['value'];
+  }
+}
+
+/**
  * @} End of "addtogroup nodewords_verification_tags".
  */
