function fb_iframe_redirect in Drupal for Facebook 7.3
4 calls to fb_iframe_redirect()
- fb_canvas_fb in ./
fb_canvas.module - Implements hook_fb().
- fb_canvas_goto in ./
fb_canvas.module - Uses javascript on iframe canvas pages change top frame, otherwise drupal_goto().
- fb_require_authorization in ./
fb.module - Helper function to ensure user has authorized an application.
- fb_tab_fb in ./
fb_tab.module - Implements hook_fb
File
- ./
fb.module, line 1564 - This is the core required module of Drupal for Facebook.
Code
function fb_iframe_redirect($url) {
// Unset drupal's header
if (function_exists('header_remove')) {
// php 5.3
header_remove('Location');
}
echo "<script type=\"text/javascript\">\ntop.location.href = \"{$url}\";\n</script>";
exit;
}