function _fb_user_special_page in Drupal for Facebook 5.2
Same name and namespace in other branches
- 5 fb_user.module \_fb_user_special_page()
- 6.3 fb_user.module \_fb_user_special_page()
- 6.2 fb_user.module \_fb_user_special_page()
- 7.3 fb_user.module \_fb_user_special_page()
There are several pages where we don't want to automatically create a new account or use an account configured for this app.
1 call to _fb_user_special_page()
- fb_user_fb in ./
fb_user.module - Implementation of hook_fb.
File
- ./
fb_user.module, line 29 - This module allows Drupal user records to be associated with Facebook user ids. It can create local user accounts when Facebook users visit an application's canvas pages.
Code
function _fb_user_special_page() {
// TODO: hopefully this can be simplified.
return arg(0) == 'user' && arg(1) == 'login' || arg(0) == 'user' && arg(1) == 'register' || arg(0) == 'fb_user' || arg(0) == 'fb' && arg(1) == 'form_cache' || arg(0) == 'fb_app' && arg(1) == 'event' || arg(0) == 'fb_connect' && arg(2) == 'receiver';
}