You are here

function fb_devel_js in Drupal for Facebook 6.2

Same name and namespace in other branches
  1. 6.3 fb_devel.module \fb_devel_js()
  2. 7.3 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 Makes development with Drupal for Facebook much easier. Keep this module enabled until you're confident your app works perfectly.

File

./fb_devel.module, line 277
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;
}