You are here

function _fb_connect_set_app in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 6.3 fb_connect.module \_fb_connect_set_app()
  2. 6.2 fb_connect.module \_fb_connect_set_app()
2 calls to _fb_connect_set_app()
fb_connect_app_init in ./fb_connect.module
Prepare for fbConnect use. Because a single Drupal might support multiple apps, we don't know in advance which is the fbConnect app.
fb_connect_get_app in ./fb_connect.module
Helper function for other modules to know page is connected.

File

./fb_connect.module, line 82
Support for Facebook Connect features

Code

function _fb_connect_set_app($fb_app = NULL) {
  $cache =& drupal_static(__FUNCTION__);
  if (isset($fb_app)) {
    $cache = $fb_app;
  }
  return $cache;
}