You are here

function _fb_canvas_get_config in Drupal for Facebook 6.3

Same name and namespace in other branches
  1. 6.2 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.

2 calls to _fb_canvas_get_config()
fb_canvas_admin_form_alter in ./fb_canvas.admin.inc
See fb_canvas_form_alter.
fb_canvas_fb in ./fb_canvas.module
Implementation of hook_fb().

File

./fb_canvas.module, line 220
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 = isset($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,
    // @TODO - can this still be supported?
    'theme_fbml' => 'fb_fbml',
    'theme_iframe' => 'fb_fbml',
    'front_anonymous' => NULL,
    'front_loggedin' => NULL,
    // Facebook API no longer supports this.
    'front_added' => NULL,
  );
  return $fb_canvas_data;
}