You are here

function logintoboggan_boot in LoginToboggan 7

Implement hook_menu_get_item_alter()

This is currently the best place to dynamically remove the authenticated role from the user object, hook_boot() allows us to act on the user object before any access checks are performed.

Related topics

File

./logintoboggan.module, line 621
LoginToboggan module

Code

function logintoboggan_boot() {
  global $user;

  // Make sure any user with pre-auth role doesn't have authenticated user role
  _logintoboggan_user_roles_alter($user);
}