function fb_access_denied in Drupal for Facebook 7.3
Same name and namespace in other branches
- 6.3 fb.module \fb_access_denied()
Convenience wrapper around drupal_access_denied(). Call on pages where the access is denied because the user is not logged into facebook.
1 call to fb_access_denied()
- fb_tab_pages in ./
fb_tab.module - This page callback will show the user a list of pages they have authority to configure.
File
- ./
fb.module, line 2056 - This is the core required module of Drupal for Facebook.
Code
function fb_access_denied() {
if (!fb_facebook_user()) {
drupal_set_message(t('You must <a href="#" onclick="FB.login(function(response) {}, {perms:Drupal.settings.fb.perms}); return false;">log into facebook to view this page</a>.'));
}
drupal_access_denied();
exit;
}