You are here

function fb_canvas_is_iframe in Drupal for Facebook 6.2

Same name and namespace in other branches
  1. 5.2 fb_canvas.module \fb_canvas_is_iframe()
  2. 5 fb_canvas.module \fb_canvas_is_iframe()
  3. 6.3 fb_canvas.module \fb_canvas_is_iframe()
  4. 7.3 fb_canvas.module \fb_canvas_is_iframe()
7 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_canvas_iframe_excursion in ./fb_canvas.module
This is intended to help sites which have some FBML and some iframe pages. Makes the current FBML canvas page an iframe. And attempts to preserve session while visiting multiple iframe pages.
fb_canvas_process in ./fb_canvas.module
This function uses regular expressions to convert links on canvas pages to URLs that begin http://apps.facebook.com/...

... See full list

1 string reference to 'fb_canvas_is_iframe'
fb_is_iframe_canvas in ./fb.module
Determine whether current page is iframe canvas page.

File

./fb_canvas.module, line 475
This module provides support for Canvas page applications. Use Drupal to power traditional Facebook Apps.

Code

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