You are here

function patterns_debug_batch in Patterns 6.2

Same name and namespace in other branches
  1. 6 patterns.module \patterns_debug_batch()

File

./patterns.module, line 3262
Enables extremely simple adding/removing features to your site with minimal to no configuration

Code

function patterns_debug_batch($var = null) {
  $var = print_r($var, true);
  $var = str_replace(" ", ' ', $var);
  $var = str_replace("\n", "<br />", $var);
  print drupal_to_js(array(
    'status' => 0,
    'data' => $var,
  ));
  exit;
}