function fb_canvas_app in Drupal for Facebook 7.4
4 calls to fb_canvas_app()
- fb_canvas_custom_theme in ./
fb_canvas.module - Implements hook_custom_theme().
- fb_canvas_fb_app_alter in ./
fb_canvas.module - Implements hook_fb_app_alter().
- fb_canvas_page_alter in ./
fb_canvas.module - Implements hook_page_alter().
- fb_canvas_post_render_page in ./
fb_canvas.module
File
- ./
fb_canvas.module, line 7
Code
function fb_canvas_app() {
$fb_app =& drupal_static('fb_canvas_app');
if ($fb_app === NULL) {
$fb_settings =& drupal_static('fb_settings');
if (!empty($fb_settings['fb__canvas'])) {
$app_id = $fb_settings['fb__canvas'];
$fb_app = fb_application_load($app_id);
}
else {
$fb_app = FALSE;
}
}
return $fb_app;
}