You are here

function _forum_access_disable_moderator in Forum Access 6

2 calls to _forum_access_disable_moderator()
_forum_access_node_form in ./forum_access.node.inc
Rewrite the taxonomy item on the node form.
_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 158
forum_access.node.inc

Code

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

  // clear the permissions cache to revert to normal
}