function hook_metatags_info in Nodewords: D6 Meta Tags 6.3
Declares the meta tags implemented by a 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.
1 function implements hook_metatags_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_metatags_info in nodewords_basic/
includes/ nodewords_basic.nodewords.hooks.inc - Implements hook_metatags_info().
2 invocations of hook_metatags_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 95 - . Nodewords hooks.
Code
function hook_metatags_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;
}