function fb_settings in Drupal for Facebook 6.3
Same name and namespace in other branches
- 5.2 fb_settings.inc \fb_settings()
- 5 fb_settings.inc \fb_settings()
- 6.2 fb_settings.inc \fb_settings()
- 7.3 fb_settings.inc \fb_settings()
Helper function to remember values as we learn them.
20 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_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
3 string references to 'fb_settings'
- fb_canvas_fb in ./
fb_canvas.module - Implementation of hook_fb().
- fb_init in ./
fb.module - Implements hook_init().
- fb_requirements in ./
fb.install - Implementation of hook_requirements().
File
- ./
fb_settings.inc, line 41 - 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;
}
}