function fb_is_tab in Drupal for Facebook 6.3
Same name and namespace in other branches
- 7.3 fb.module \fb_is_tab()
Is the current page a profile tab?
8 calls to fb_is_tab()
- fb_connect_block in ./
fb_connect.module - Implements hook_block().
- fb_connect_fb in ./
fb_connect.module - Implementation of hook_fb().
- fb_devel_fb in ./
fb_devel.module - Implements hook_fb().
- fb_is_canvas in ./
fb.module - Is the current request a canvas page?
- fb_tab_fb in ./
fb_tab.module - Implementation of hook_fb
File
- ./
fb.module, line 811 - This is the core required module of Drupal for Facebook.
Code
function fb_is_tab() {
global $_fb;
if (fb_settings(FB_SETTINGS_TYPE) == FB_SETTINGS_TYPE_PAGE_TAB) {
return TRUE;
}
elseif (fb_settings(FB_SETTINGS_TYPE) == FB_SETTINGS_TYPE_PROFILE) {
// deprecated FBML tab
return TRUE;
}
elseif (isset($_REQUEST['fb_sig_in_profile_tab']) && $_REQUEST['fb_sig_in_profile_tab']) {
// deprecated ancient history
// Old way, no migrations enabled.
return TRUE;
}
return FALSE;
}