You are here

function kprint_r in Devel 6

Same name and namespace in other branches
  1. 5 devel.module \kprint_r()
  2. 7 devel.module \kprint_r()
4 calls to kprint_r()
devel_session in ./devel.module
Menu callback: display the session.
devel_theme_registry in ./devel.module
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 1896

Code

function kprint_r($input, $return = FALSE, $name = NULL, $function = 'print_r') {

  // We do not want to krumo() strings and integers and such
  if (merits_krumo($input)) {
    if (user_access('access devel information')) {
      return $return ? (isset($name) ? $name . ' => ' : '') . krumo_ob($input) : krumo($input);
    }
  }
  else {
    return dprint_r($input, $return, $name, $function);
  }
}