function _fb_user_special_page in Drupal for Facebook 6.2
Same name and namespace in other branches
- 5.2 fb_user.module \_fb_user_special_page()
- 5 fb_user.module \_fb_user_special_page()
- 6.3 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 76 - This module manages relations between local Drupal user accounts and their accounts on facebook.com.
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(1) == 'receiver';
}