function patterns_debug_batch in Patterns 6
Same name and namespace in other branches
- 6.2 patterns.module \patterns_debug_batch()
File
- ./
patterns.module, line 3202 - 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;
}