metatag_verification.metatag.inc 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. /**
  3. * @file
  4. * Metatag integration for the Metatag: Verification module.
  5. */
  6. /**
  7. * Implements hook_metatag_info().
  8. */
  9. function metatag_verification_metatag_info() {
  10. $info['groups']['verification'] = array(
  11. 'label' => t('Site verification'),
  12. 'description' => t('These meta tags are used to confirm site ownership with search engines and other services.'),
  13. 'form' => array(
  14. '#weight' => 110,
  15. ),
  16. );
  17. // Stack the verification codes after most others.
  18. $weight = 100;
  19. // Defaults used for all meta tags.
  20. $defaults = array(
  21. 'class' => 'DrupalTextMetaTag',
  22. 'context' => array('global'),
  23. 'group' => 'verification',
  24. );
  25. $info['tags']['msvalidate.01'] = array(
  26. 'label' => t('Bing'),
  27. 'description' => t('A string provided by <a href="@bing">Bing</a>, full details are available from the <a href="@verify_url">Bing online help</a>.', array('@bing' => 'http://www.bing.com/', '@verify_url' => 'http://www.bing.com/webmaster/help/how-to-verify-ownership-of-your-site-afcfefc6')),
  28. 'weight' => ++$weight,
  29. ) + $defaults;
  30. $info['tags']['baidu-site-verification'] = array(
  31. 'label' => t('Baidu'),
  32. 'description' => t('A string provided by <a href="@baidu">Baidu</a>.', array('@baidu' => 'http://www.baidu.com/')),
  33. 'weight' => ++$weight,
  34. ) + $defaults;
  35. $info['tags']['google-site-verification'] = array(
  36. 'label' => t('Google'),
  37. 'description' => t('A string provided by <a href="@google">Google</a>, full details are available from the <a href="@verify_url">Google online help</a>.', array('@google' => 'https://www.google.com/', '@verify_url' => 'https://support.google.com/webmasters/answer/35179?hl=en')),
  38. 'weight' => ++$weight,
  39. ) + $defaults;
  40. $info['tags']['norton-safeweb-site-verification'] = array(
  41. 'label' => t('Norton Safe Web'),
  42. 'description' => t('A string provided by <a href="@norton">Norton Safe Web</a>, full details are available from the <a href="@verify_url">Norton Safe Web online help</a>.', array('@norton' => 'https://safeweb.norton.com/', '@verify_url' => 'https://safeweb.norton.com/help/site_owners')),
  43. 'weight' => ++$weight,
  44. ) + $defaults;
  45. $info['tags']['p:domain_verify'] = array(
  46. 'label' => t('Pinterest'),
  47. 'description' => t('A string provided by <a href="@pinterest">Pinterest</a>, full details are available from the <a href="@verify_url">Pinterest online help</a>.', array('@pinterest' => 'https://www.pinterest.com/', '@verify_url' => 'https://help.pinterest.com/en/articles/verify-your-website')),
  48. 'weight' => ++$weight,
  49. ) + $defaults;
  50. $info['tags']['yandex-verification'] = array(
  51. 'label' => t('Yandex'),
  52. 'description' => t('A string provided by <a href="@yandex">Yandex</a>, full details are available from the <a href="@verify_url">Yandex online help</a>.', array('@yandex' => 'http://www.yandex.com/', '@verify_url' => 'http://api.yandex.com/webmaster/doc/dg/reference/hosts-type.xml')),
  53. 'weight' => ++$weight,
  54. ) + $defaults;
  55. return $info;
  56. }