You are here

function advanced_forum_markasread_access in Advanced Forum 6

Same name and namespace in other branches
  1. 5 advanced_forum.module \advanced_forum_markasread_access()
  2. 6.2 includes/mark-read.inc \advanced_forum_markasread_access()
  3. 7.2 includes/mark-read.inc \advanced_forum_markasread_access()

Access callback for menus and link display.

This separate function is needed because the Drupal 6 menu system doesn't run hook_menu() every time and the logged-in status of the user can get cached and re-used for other users.

1 call to advanced_forum_markasread_access()
advanced_forum_preprocess_forums in ./advanced_forum.module
Preprocesses template variables for the forum template.
1 string reference to 'advanced_forum_markasread_access'
advanced_forum_menu in ./advanced_forum.module
Implementation of hook_menu().

File

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

Code

function advanced_forum_markasread_access() {
  global $user;
  return user_access('access content') && $user->uid;
}