You are here

function _fb_canvas_get_config in Drupal for Facebook 6.2

Same name and namespace in other branches
  1. 6.3 fb_canvas.module \_fb_canvas_get_config()
  2. 7.3 fb_canvas.module \_fb_canvas_get_config()

Helper returns configuration for this module, on a per-app basis.

1 call to _fb_canvas_get_config()
fb_canvas_form_alter in ./fb_canvas.module
Implementation of hook_form_alter.

File

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

Code

function _fb_canvas_get_config($fb_app) {
  $fb_app_data = fb_get_app_data($fb_app);
  $fb_canvas_data = $fb_app_data['fb_canvas'] ? $fb_app_data['fb_canvas'] : array();

  // Merge in defaults
  $fb_canvas_data += array(
    'require_login' => FB_CANVAS_OPTION_ALLOW_ANON,
    'theme_fbml' => 'fb_fbml',
    'theme_iframe' => 'fb_fbml',
  );
  return $fb_canvas_data;
}