You are here

forum.inc in Nodewords: D6 Meta Tags 6

Same filename and directory in other branches
  1. 6.3 includes/forum.inc
  2. 6.2 includes/forum.inc

Integration file for forum.module.

File

includes/forum.inc
View source
<?php

/**
 * @file
 * Integration file for forum.module.
 */

/**
 * @addtogroup nodewords
 * @{
 */

/**
 * Implements hook_nodewords_type_id().
 */
function forum_nodewords_type_id(&$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];
    }
  }
}

/**
 * @} End of "addtogroup nodewords".
 */

Functions