You are here

function forum_access_update_7001 in Forum Access 7

Remove the D6 Forum Moderator role which is not needed anymore.

File

./forum_access.install, line 172
Install, update and uninstall functions for the forum_access module.

Code

function forum_access_update_7001() {

  // We don't need the Forum Moderator temporary role anymore.
  if ($moderator_rid = (int) variable_get('forum_access_moderator_rid', NULL)) {
    user_role_delete($moderator_rid);
    variable_del('forum_access_moderator_rid');
  }
}