forum.inc in Nodewords: D6 Meta Tags 6.3
Same filename and directory in other branches
Integration file for forum.module.
File
includes/forum.incView source
<?php
/**
* @file
* Integration file for forum.module.
*/
/**
* Implements hook_metatags_type().
*/
function forum_metatags_type(&$result, $arg) {
if ($arg[0] == 'forum') {
// Forum paths: forum/$tid , forum/.
if (!isset($arg[1])) {
$result['type'] = NODEWORDS_TYPE_VOCABULARY;
$result['id'] = variable_get('forum_nav_vocabulary', 0);
}
elseif (is_numeric($arg[1])) {
$result['type'] = NODEWORDS_TYPE_TERM;
$result['id'] = $arg[1];
}
}
}
Functions
Name![]() |
Description |
---|---|
forum_metatags_type | Implements hook_metatags_type(). |