function fb_settings in Drupal for Facebook 7.3
Same name and namespace in other branches
- 5.2 fb_settings.inc \fb_settings()
- 5 fb_settings.inc \fb_settings()
- 6.3 fb_settings.inc \fb_settings()
- 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
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;
}
}