You are here

function has_krumo in Devel 5

Same name and namespace in other branches
  1. 6 devel.module \has_krumo()
  2. 7 devel.module \has_krumo()
7 calls to has_krumo()
ddebug_backtrace in ./devel.module
Print the function call stack.
devel_init in ./devel.module
Implementation of hook_init(). Avoids custom error handling for better behavior when stepping though in a debugger.
devel_menu in ./devel.module
Implementation of hook_menu().
devel_variable in ./devel.module
dprint_r in ./devel.module
Pretty-print a variable to the browser. Displays only for users with proper permissions. If you want a string returned instead of a print, use the 2nd param.

... See full list

File

./devel.module, line 286

Code

function has_krumo() {

  // see README.txt or just download from http://krumo.sourceforge.net/
  @(include_once './' . drupal_get_path('module', 'devel') . '/krumo/class.krumo.php');
  if (function_exists('krumo') && php_sapi_name() != 'cli') {
    return TRUE;
  }
  else {
    return FALSE;
  }
}