function fb_canvas_is_iframe in Drupal for Facebook 7.3
Same name and namespace in other branches
- 5.2 fb_canvas.module \fb_canvas_is_iframe()
- 5 fb_canvas.module \fb_canvas_is_iframe()
- 6.3 fb_canvas.module \fb_canvas_is_iframe()
- 6.2 fb_canvas.module \fb_canvas_is_iframe()
Is the current request being displayed in an iframe canvas page?
4 calls to fb_canvas_is_iframe()
- fb_canvas_custom_theme in ./
fb_canvas.module - fb_canvas_fb in ./
fb_canvas.module - Implements 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 192 - 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;
}