You are here

function _fb_canvas_get_config in Drupal for Facebook 7.3

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

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

3 calls to _fb_canvas_get_config()
fb_canvas_admin_form_alter in ./fb_canvas.admin.inc
See fb_canvas_form_alter.
fb_canvas_custom_theme in ./fb_canvas.module
fb_canvas_fb in ./fb_canvas.module
Implements hook_fb().

File

./fb_canvas.module, line 200
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?
    'front_anonymous' => NULL,
    'front_loggedin' => NULL,
    // Facebook API no longer supports this.
    'front_added' => NULL,
  );
  return $fb_canvas_data;
}