You are here

function hook_nodewords_tags_info in Nodewords: D6 Meta Tags 6.2

Same name and namespace in other branches
  1. 6 nodewords.api.php \hook_nodewords_tags_info()

Declares the meta tags implemented by the module.

Return value

An array containing the following values:

  • attributes - the tag attributes used when outputting the tag on HTML HEAD.
  • callback - the string used to built the name of the functions called for any meta tags operations.
  • context - the contexts in which the meta tags are allowed (and denied).
  • label - the label used as title in the fieldset for the form field shown in the form to edit the meta tags values.
  • templates - the templates used when the meta tag is output.
  • weight - the weight used to order the meta tags before to output them; the lighter meta tag will be output first.
3 functions implement hook_nodewords_tags_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

nodewords_basic_nodewords_tags_info in nodewords_basic/includes/nodewords_basic.nodewords.hooks.inc
Implements hook_nodewords_tags_info().
nodewords_extra_nodewords_tags_info in nodewords_extra/includes/nodewords_extra.nodewords.hooks.inc
Implements hook_nodewords_tags_info().
nodewords_verification_tags_nodewords_tags_info in nodewords_verification_tags/includes/nodewords_verification_tags.nodewords.hooks.inc
Implements hook_nodewords_tags_info().
2 invocations of hook_nodewords_tags_info()
nodewords_get_possible_tags in ./nodewords.module
Query all the modules implementing meta tags and return the list of meta tags.
nodewords_requirements in ./nodewords.install
Implements hook_requirements().

File

./nodewords.api.php, line 124
. Nodewords hooks.

Code

function hook_nodewords_tags_info() {
  $tags = array(
    'dc.title' => array(
      'callback' => 'nodewords_extra_dc_title',
      'context' => array(
        'denied' => array(
          NODEWORDS_TYPE_DEFAULT,
        ),
      ),
      'label' => t('Dublin Core title'),
      'templates' => array(
        'head' => array(
          'dc.title' => NODEWORDS_META,
        ),
      ),
    ),
    'location' => array(
      'callback' => 'nodewords_extra_location',
      'label' => t('Location'),
      'templates' => array(
        'head' => array(
          'geo.position' => NODEWORDS_META,
          'icbm' => NODEWORDS_META,
        ),
      ),
    ),
  );
  return $tags;
}