function logintoboggan_denied in LoginToboggan 6
Same name and namespace in other branches
- 5 logintoboggan.module \logintoboggan_denied()
- 7 logintoboggan.module \logintoboggan_denied()
1 string reference to 'logintoboggan_denied'
- logintoboggan_menu in ./
logintoboggan.module - Implementation of hook_menu()
File
- ./
logintoboggan.module, line 820 - Logintoboggan Module
Code
function logintoboggan_denied() {
global $user;
if ($user->uid == 0) {
global $logintoboggan_denied;
$logintoboggan_denied = TRUE;
// build the user menu item as the 403 page content, adjust the page title appropriately, and warn
// the user that they were denied access.
menu_set_active_item('user');
$return = menu_execute_active_handler();
drupal_set_title(t('Access Denied / User Login'));
drupal_set_message(t('Access denied. You may need to login below or register to access this page.'), 'error');
}
else {
drupal_set_title(t('Access Denied'));
$return = theme('lt_access_denied');
}
return $return;
}