Commit 2f5b65e8 authored by spleshka's avatar spleshka

Restore expire_print_r() function for compatibility with modules that may use...

Restore expire_print_r() function for compatibility with modules that may use this function for debug purposes (like Purge module does).
parent bae39d8f
......@@ -233,3 +233,16 @@ function _expire_get_expiration_handler($type) {
}
return $cache_objects[$type];
}
/**
* Simple print_r to html function.
*
* @param $data
* Array with output data.
*
* @return string
* print_r contents in nicely formatted html.
*/
function expire_print_r($data) {
return str_replace(' ', '    ', nl2br(htmlentities(print_r($data, TRUE))));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment