metatags_quick-4.0.x-dev/known_tags.inc

known_tags.inc
<?php

/**
 * @file
 * Functionality needed for upgrade path from nodewords.
 */

/**
 * Returns array of fields needed for upgrade from nodewords, keyed by meta name.
 *
 * @todo use hooks to alter known tags
 *
 * @return array
 */
function _metatags_quick_known_fields() {
  return [
    'abstract' => [
      'type' => 'meta_contents',
      'widget' => 'metatags_quick_textfield',
      'title' => t('Abstract'),
      'description' => t('Enter a short abstract. Typically it is one sentence.'),
    ],
    /* Comment that out until [#1229822] is solved properly */
    'canonical' => [
      'type' => 'head_link',
      'widget' => 'metatags_quick_textfield',
      'title' => t('Canonical URL'),
      'description' => t('Canonical URLs are used from the search engines, and allow them to not report duplicate titles for HTML pages that are accessible from different URLs. Use a relative URL without the initial slash; canonical URLs that point to a different domain are normally not accepted.'),
    ],
    'copyright' => [
      'type' => 'meta_contents',
      'widget' => 'metatags_quick_textfield',
      'title' => t('Copyright'),
      'description' => t('Enter a short copyright statement.'),
    ],
    'description' => [
      'type' => 'meta_contents',
      'widget' => 'metatags_quick_textarea',
      'title' => t('Description'),
      'description' => t('Enter a description. Limit your description to about 20 words, with a maximum of 255 characters. It should not contain any HTML tags or other formatting.'),
    ],
    'keywords' => [
      'type' => 'meta_contents',
      'widget' => 'metatags_quick_textfield',
      'title' => t('Keywords'),
      'description' => t('Enter a short abstract. Typically it is one sentence.'),
    ],
    'revisit_after' => [
      'meta_name' => 'revisit-after',
      'type' => 'meta_contents',
      'widget' => 'metatags_quick_textfield',
      'title' => t('Revisit after'),
      'description' => t('day(s)'),
    ],
    'robots' => [
      'type' => 'meta_contents',
      'widget' => 'metatags_quick_checkboxes',
      'title' => t('Robots'),
      'options' => 'noarchive,nofollow,noindex,noodp,nosnippet,noydir',
    ],
    // Using 'title' as the key messes up the admin.
    'meta_title' => [
      'meta_name' => 'title',
      'type' => 'meta_contents',
      'widget' => 'metatags_quick_textfield',
      'title' => t('Title'),
      'description' => t('Custom title.'),
    ],
  ];
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc