You are here

function fb_canvas_handling_form in Drupal for Facebook 6.2

Same name and namespace in other branches
  1. 5.2 fb_canvas.module \fb_canvas_handling_form()
  2. 5 fb_canvas.module \fb_canvas_handling_form()
2 calls to fb_canvas_handling_form()
fb_canvas_fb in ./fb_canvas.module
Implementation of hook_fb().
fb_canvas_is_fbml in ./fb_canvas.module

File

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

Code

function fb_canvas_handling_form($value = NULL) {
  global $_fb;

  // Test whether a form has been submitted via facebook canvas page.
  if ($_fb && isset($_REQUEST[FB_CANVAS_FORM_HANDLER_ENABLED])) {
    $result = $_REQUEST[FB_CANVAS_FORM_HANDLER_ENABLED];
  }
  if (isset($value)) {
    $_REQUEST[FB_CANVAS_FORM_HANDLER_ENABLED] = $value;
  }
  return $result;
}