You are here

function fb_canvas_is_fbml in Drupal for Facebook 5.2

Same name and namespace in other branches
  1. 5 fb_canvas.module \fb_canvas_is_fbml()
  2. 6.2 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
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_is_iframe in ./fb_canvas.module

... See full list

6 string references to 'fb_canvas_is_fbml'
fb_connect_footer in ./fb_connect.module
Include facebook javascript in the footer of the current page.
fb_form_form_alter in ./fb_form.module
hook_form_alter.
fb_form_invite_page in ./fb_form.module
Create a page to invite friends to add an app.
fb_user_fb in ./fb_user.module
Implementation of hook_fb.
fb_user_user in ./fb_user.module
Implementation of hook_user.

... See full list

File

./fb_canvas.module, line 302
This module provides some app-specific navigation to 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();
    }
  }
}