You are here

function fb_is_tab in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 6.3 fb.module \fb_is_tab()

Is the current page a profile tab?

10 calls to fb_is_tab()
fb_connect_block_view in ./fb_connect.module
fb_connect_fb in ./fb_connect.module
Implements 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_require_authorization in ./fb.module
Helper function to ensure user has authorized an application.

... See full list

1 string reference to 'fb_is_tab'
fb_rules_rules_condition_info in contrib/fb_rules.rules.inc
Implementation of hook_rules_condition_info().

File

./fb.module, line 911
This is the core required module of Drupal for Facebook.

Code

function fb_is_tab() {
  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;
}