function fb_exit in Drupal for Facebook 6.2
Same name and namespace in other branches
- 5.2 fb.module \fb_exit()
- 5 fb.module \fb_exit()
- 6.3 fb.module \fb_exit()
- 7.3 fb.module \fb_exit()
Implements hook_exit().
When completing a canvas page we need special processing for the session. See fb_session.inc.
Also invoke hook_fb(FB_OP_EXIT), so that other modules can handle special cases (in particular form support in b_canvas.module.
File
- ./
fb.module, line 701
Code
function fb_exit($destination = NULL) {
global $_fb_app, $_fb;
if ($_fb_app && $_fb) {
// Session management
if (function_exists('fb_session_exit')) {
fb_session_exit();
}
// Invoke other modules.
fb_invoke(FB_OP_EXIT, array(
'fb_app' => $_fb_app,
'fb' => $GLOBALS['_fb'],
), $destination);
}
}