You are here

function fb_canvas_is_iframe in Drupal for Facebook 5.2

Same name and namespace in other branches
  1. 5 fb_canvas.module \fb_canvas_is_iframe()
  2. 6.3 fb_canvas.module \fb_canvas_is_iframe()
  3. 6.2 fb_canvas.module \fb_canvas_is_iframe()
  4. 7.3 fb_canvas.module \fb_canvas_is_iframe()
5 calls to fb_canvas_is_iframe()
fb_canvas_fb in ./fb_canvas.module
Implementation of hook_fb.
fb_canvas_form_alter in ./fb_canvas.module
Implementation of hook_form_alter.
fb_canvas_goto in ./fb_canvas.module
Uses $fb->redirect on canvas pages, otherwise drupal_goto.
fb_user_fb in ./fb_user.module
Implementation of hook_fb.
_phptemplate_variables in themes/fb_fbml/template.php
1 string reference to 'fb_canvas_is_iframe'
_phptemplate_variables in themes/fb_fbml/template.php

File

./fb_canvas.module, line 313
This module provides some app-specific navigation to facebook apps.

Code

function fb_canvas_is_iframe() {
  global $fb, $fb_app;
  if ($fb && $fb_app) {
    return $fb
      ->in_frame() && !fb_canvas_is_fbml();
  }
}