You are here

function fb_canvas_custom_theme in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 7.4 fb_canvas.module \fb_canvas_custom_theme()

File

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

Code

function fb_canvas_custom_theme() {
  if (fb_canvas_is_iframe()) {

    // Get our configuration settings.
    $fb_canvas_data = _fb_canvas_get_config($GLOBALS['_fb_app']);
    if ($custom_theme = $fb_canvas_data['theme_iframe']) {
      return $custom_theme;
    }
  }
}