function hook_nodewords_tags_output_alter in Nodewords: D6 Meta Tags 6.2
Same name and namespace in other branches
- 6 nodewords.api.php \hook_nodewords_tags_output_alter()
Alters the meta tags output. The hook is called when the meta tags are already rendered.
Parameters
&$output: The string to alter.
$parameters: An array of parameters. The currently defined are:
- type - the type of object for the page to which the meta tags are associated.
- id - the ID for the object associated with the page.
- output - where the meta tags are being output; the parameter value can 'head' or 'update index'.
1 function implements hook_nodewords_tags_output_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- nodewords_extra_nodewords_tags_output_alter in nodewords_extra/
includes/ nodewords_extra.nodewords.hooks.inc
1 invocation of hook_nodewords_tags_output_alter()
- nodewords_preprocess_page in ./
nodewords.module - Implements hook_preprocess_page().
File
- ./
nodewords.api.php, line 202 - . Nodewords hooks.
Code
function hook_nodewords_tags_output_alter(&$output, $parameters) {
$bool = variable_get('nodewords_add_dc_schema', FALSE) && isset($parameters['output']) && $parameters['output'] == 'head';
if ($bool) {
$output = '<link rel="schema.dc" href="http://purl.org/dc/elements/1.1/" />' . "\n" . $output;
}
}