You are here

function fb_canvas_is_fbml in Drupal for Facebook 6.2

Same name and namespace in other branches
  1. 5.2 fb_canvas.module \fb_canvas_is_fbml()
  2. 5 fb_canvas.module \fb_canvas_is_fbml()
12 calls to fb_canvas_is_fbml()
fb_canvas_fb in ./fb_canvas.module
Implementation of hook_fb().
fb_canvas_footer in ./fb_canvas.module
Implementation of hook_footer().
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.

... See full list

1 string reference to 'fb_canvas_is_fbml'
fb_is_fbml_canvas in ./fb.module
Determine whether current page is FBML canvas page.

File

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

Code

function fb_canvas_is_fbml() {
  global $_fb, $_fb_app;
  if ($_fb && $_fb_app) {

    // Facebook events are not canvas pages
    if (arg(0) == 'fb_app' && arg(1) == 'event') {
      return FALSE;
    }
    else {
      return $_fb
        ->in_fb_canvas() || fb_canvas_handling_form();
    }
  }
}