You are here

function fb_devel_js in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 6.3 fb_devel.module \fb_devel_js()
  2. 6.2 fb_devel.module \fb_devel_js()

Provide some information for testing AHAH and AJAX scenarios.

1 string reference to 'fb_devel_js'
fb_devel_menu in ./fb_devel.module

File

./fb_devel.module, line 538
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_output(array(
    'status' => TRUE,
    'data' => $data,
  ));
  exit;
}