taxonomy_menu.inc in Nodewords: D6 Meta Tags 6.2
Same filename and directory in other branches
Integration file for taxonomy_menu.module.
File
includes/taxonomy_menu.incView source
<?php
/**
* @file
* Integration file for taxonomy_menu.module.
*/
/**
* Implements hook_nodewords_type_id().
*/
function taxonomy_menu_nodewords_type_id(&$result, $arg) {
if ($arg[0] == 'taxonomy_menu') {
// Taxonomy menu paths: taxonomy_menu/$vid, taxonomy_menu/$vid/$tid.
if (isset($arg[2]) && is_numeric($arg[2])) {
$result['type'] = NODEWORDS_TYPE_TERM;
$result['id'] = $arg[2];
}
elseif (isset($arg[1]) && is_numeric($arg[1])) {
$result['type'] = NODEWORDS_TYPE_VOCABULARY;
$result['id'] = $arg[1];
}
}
}
Functions
Name | Description |
---|---|
taxonomy_menu_nodewords_type_id | Implements hook_nodewords_type_id(). |