function fb_devel_js in Drupal for Facebook 6.3
Same name and namespace in other branches
- 6.2 fb_devel.module \fb_devel_js()
- 7.3 fb_devel.module \fb_devel_js()
Provide some information for testing AHAH and AJAX scenarios.
1 string reference to 'fb_devel_js'
File
- ./
fb_devel.module, line 531 - Makes development with Drupal for Facebook much easier. Keep this module enabled until you're confident your app works perfectly.
Code
function fb_devel_js() {
$data = '<pre>';
$data .= "session_name() = " . session_name() . "\n";
$data .= "session_id() = " . session_id() . "\n";
$data .= "REQUEST: " . dprint_r($_REQUEST, 1) . "\n";
$data .= "SESSION: " . dprint_r($_SESSION, 1) . "\n";
$data .= '</pre>';
print drupal_json(array(
'status' => TRUE,
'data' => $data,
));
exit;
}