You are here

function _advanced_forum_topic_nid in Advanced Forum 6

Same name and namespace in other branches
  1. 5 advanced_forum.module \_advanced_forum_topic_nid()

Holds the node ID of the thread we are on.

Used for linking the comment numbers.

Parameters

$nid: Node ID

1 call to _advanced_forum_topic_nid()
advanced_forum_preprocess_comment in ./advanced_forum.module
Preprocesses template variables for the comment template.

File

./advanced_forum.module, line 1527
Enables the look and feel of other popular forum software.

Code

function _advanced_forum_topic_nid($nodeid = 0) {
  static $nid;
  if (!empty($nodeid)) {
    $nid = $nodeid;
  }
  return $nid;
}