You are here

function expire_print_r in Cache Expiration 6

Same name and namespace in other branches
  1. 7.2 expire.module \expire_print_r()
  2. 7 expire.module \expire_print_r()

Simple print_r to html function

Parameters

$data:

Return value

string print_r contents in nicely formatted html

3 calls to expire_print_r()
drush_expire_url in ./expire.drush.inc
Callback for expire-url drush command.
expire_cache_derivative in ./expire.module
Finds all possible paths/redirects/aliases given the root path.
expire_rules_action_flush_url in ./expire.rules.inc
Expire a URL from the page cache.

File

./expire.module, line 520
Provides logic for page cache expiration

Code

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