You are here

function fb_settings in Drupal for Facebook 6.2

Same name and namespace in other branches
  1. 5.2 fb_settings.inc \fb_settings()
  2. 5 fb_settings.inc \fb_settings()
  3. 6.3 fb_settings.inc \fb_settings()
  4. 7.3 fb_settings.inc \fb_settings()

Helper function to remember values as we learn them.

9 calls to fb_settings()
fb_app_fb in ./fb_app.module
Implementation of hook_fb().
fb_canvas_fb in ./fb_canvas.module
Implementation of hook_fb().
fb_canvas_iframe_excursion in ./fb_canvas.module
This is intended to help sites which have some FBML and some iframe pages. Makes the current FBML canvas page an iframe. And attempts to preserve session while visiting multiple iframe pages.
fb_devel_fb in ./fb_devel.module
fb_devel_info in ./fb_devel.module

... See full list

5 string references to 'fb_settings'
fb_app_fb in ./fb_app.module
Implementation of hook_fb().
fb_canvas_fb in ./fb_canvas.module
Implementation of hook_fb().
fb_canvas_iframe_excursion in ./fb_canvas.module
This is intended to help sites which have some FBML and some iframe pages. Makes the current FBML canvas page an iframe. And attempts to preserve session while visiting multiple iframe pages.
fb_init in ./fb.module
Implementation of hook_init
fb_requirements in ./fb.install
Implementation of hook_requirements().

File

./fb_settings.inc, line 36
This file is to be included from your sites/.../settings.php file.

Code

function fb_settings($key, $value = NULL) {
  static $cache = array();
  if (isset($value)) {
    $cache[$key] = $value;
  }
  return isset($cache[$key]) ? $cache[$key] : NULL;
}