You are here

function advanced_forum_markasread_access in Advanced Forum 5

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

Helper function to tell whether a user should be able to mark forums read.

2 calls to advanced_forum_markasread_access()
advanced_forum_menu in ./advanced_forum.module
Implementation of hook_menu().
advanced_forum_preprocess_forums in ./advanced_forum.module
Preprocesses template variables for the forum template.

File

./advanced_forum.module, line 1113
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;
}