You are here

function forum_access_current_tid in Forum Access 7

Saves and returns the forum TID, if we're on a forum-specific page.

2 calls to forum_access_current_tid()
forum_access_menu_get_item_alter in ./forum_access.module
Implements hook_menu_get_item_alter().
forum_access_node_access in ./forum_access.module
Implements hook_node_access().

File

./forum_access.module, line 538
forum_access.module

Code

function forum_access_current_tid($tid = NULL) {
  static $saved_tid = 0;
  if (isset($tid)) {
    $saved_tid = $tid;
  }
  return $saved_tid;
}