function fb_is_fbml_canvas in Drupal for Facebook 6.2
Determine whether current page is FBML canvas page.
14 calls to fb_is_fbml_canvas()
- fb_connect_fb in ./
fb_connect.module - Implementation of hook_fb().
- fb_connect_footer in ./
fb_connect.module - Include facebook javascript in the footer of the current page.
- fb_connect_form_alter in ./
fb_connect.module - fb_connect_theme_username_override in ./
fb_connect.module - Our replacement for theme('username', ...)
- fb_connect_theme_user_picture_override in ./
fb_connect.module - Our replacement for theme('user_picture', ...)
File
- ./
fb.module, line 319
Code
function fb_is_fbml_canvas() {
if (function_exists('fb_canvas_is_fbml')) {
// More complex logic if fb_canvas.module enabled.
return fb_canvas_is_fbml();
}
else {
if (isset($GLOBALS['_fb'])) {
return $GLOBALS['_fb']
->in_fb_canvas();
}
}
}