You are here

function advanced_forum_markasread_access in Advanced Forum 6.2

Same name and namespace in other branches
  1. 5 advanced_forum.module \advanced_forum_markasread_access()
  2. 6 advanced_forum.module \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_get_mark_read_link in includes/mark-read.inc
Either fill a $links array or return a string version of the link to mark read.
1 string reference to 'advanced_forum_markasread_access'
advanced_forum_menu in ./advanced_forum.module
Implementation of hook_menu().

File

includes/mark-read.inc, line 100
Holds functions relating to the Mark Forum/All Read functionality.

Code

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