You are here

function _forum_access_enable_moderator in Forum Access 6

2 calls to _forum_access_enable_moderator()
forum_access_init in ./forum_access.module
Implementation of hook_init().
_forum_access_preprocess_comment in ./forum_access.node.inc
Recreate comment links (they've already been themed), and remove those that aren't accessible to the user (pre-D6.17).

File

./forum_access.node.inc, line 148
forum_access.node.inc

Code

function _forum_access_enable_moderator() {
  global $user;
  $rid = _forum_access_get_moderator_rid();
  $user->roles[$rid] = '(forum_access temporary)';
  user_access('', NULL, TRUE);

  // clear the permissions cache to activate the new role
}