You are here

function fb_settings in Drupal for Facebook 7.3

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. 6.2 fb_settings.inc \fb_settings()

Helper function to remember values as we learn them.

22 calls to fb_settings()
fb_app_fb in ./fb_app.module
Implements hook_fb().
fb_canvas_fb in ./fb_canvas.module
Implements hook_fb().
fb_canvas_is_iframe in ./fb_canvas.module
Is the current request being displayed in an iframe canvas page?
fb_devel_fb in ./fb_devel.module
Implements hook_fb().
fb_devel_info in ./fb_devel.module

... See full list

5 string references to 'fb_settings'
fb_canvas_fb in ./fb_canvas.module
Implements hook_fb().
fb_custom_theme in ./fb.module
Implements hook_custom_theme().
fb_init in ./fb.module
Implements hook_init().
fb_requirements in ./fb.install
Implementation of hook_requirements().
fb_tokens in ./fb.module
Implements hook_tokens().

File

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

Code

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