You are here

function fb_canvas_is_iframe in Drupal for Facebook 6.3

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.2 fb_canvas.module \fb_canvas_is_iframe()
  4. 7.3 fb_canvas.module \fb_canvas_is_iframe()

Is the current request being displayed in an iframe canvas page?

3 calls to fb_canvas_is_iframe()
fb_canvas_fb in ./fb_canvas.module
Implementation of hook_fb().
fb_canvas_goto in ./fb_canvas.module
Uses javascript on iframe canvas pages change top frame, otherwise drupal_goto().
fb_canvas_url_outbound_alter in ./fb_canvas.module
Implements hook_url_outbound_alter().

File

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

Code

function fb_canvas_is_iframe() {

  // Use either parameters passed from facebook, or url rewriting.
  return fb_settings(FB_SETTINGS_TYPE) == FB_SETTINGS_TYPE_CANVAS;
}