You are here

function kprint_r in Devel 5

Same name and namespace in other branches
  1. 6 devel.module \kprint_r()
  2. 7 devel.module \kprint_r()
3 calls to kprint_r()
devel_session in ./devel.module
Menu callback: display the session.
dpm in ./devel.module
Print a variable to the 'message' area of the page. Uses drupal_set_message()
kpr in ./devel.module
An alias for kprint_r(). Saves carpal tunnel syndrome.

File

./devel.module, line 1317

Code

function kprint_r($input, $return = FALSE, $name = NULL, $function = 'print_r') {
  if (has_krumo()) {
    if (user_access('access devel information')) {
      return $return ? (isset($name) ? $name . ' => ' : '') . krumo_ob($input) : krumo($input);
    }
  }
  else {
    return dprint_r($input, $return, $name, $function);
  }
}