You are here

function purge_print_r in Purge 6

Same name and namespace in other branches
  1. 7 purge.module \purge_print_r()

Simple print_r to html function, stolen from expire.

Parameters

$data:

Return value

string print_r contents in nicely formatted html

1 call to purge_print_r()
purge_logging in ./purge.inc
Logs successful purges and errors to the watchdog.

File

./purge.module, line 83
Purge clears url's from reverse proxy caches like Varnish and Squid by issuing HTTP PURGE requests.

Code

function purge_print_r($data) {
  return str_replace('    ', '    ', nl2br(htmlentities(print_r($data, TRUE))));
}