function fb_is_iframe_canvas in Drupal for Facebook 6.2
Determine whether current page is iframe canvas page.
6 calls to fb_is_iframe_canvas()
- fb_connect_app_init in ./
fb_connect.module - Prepare for fbConnect use. Because a single Drupal might support multiple apps, we don't know in advance which is the fbConnect app. Theoretically, it might be possible to simultaneously use multiple apps and fbConnect, but my suspicion is…
- fb_connect_user in ./
fb_connect.module - Implementation of hook_user
- fb_devel_fb in ./
fb_devel.module - fb_devel_page in ./
fb_devel.module - Provides a page with useful debug info.
- fb_fbml_preprocess_page in themes/
fb_fbml/ template.php - Theme engine calls this preprocess "hook" before rendering a page.
File
- ./
fb.module, line 333
Code
function fb_is_iframe_canvas() {
if (function_exists('fb_canvas_is_iframe')) {
// More complex logic if fb_canvas.module enabled.
return fb_canvas_is_iframe();
}
else {
if (isset($GLOBALS['_fb'])) {
return $GLOBALS['_fb']
->in_frame();
}
}
}