function has_krumo

Determines if Krumo is available.

No need for cache here.

Return value

boolean TRUE if Krumo is available, FALSE otherwise.

4 calls to has_krumo()
devel_init in ./devel.module
Implements hook_init().
devel_set_handler in ./devel.module
Sets a new error handler or restores the prior one.
kdevel_print_object in ./devel.module
Prints an object using either Krumo (if installed) or devel_print_object().
merits_krumo in ./devel.module
Decides whether or not to print a debug variable using krumo().

File

./devel.module, line 503

Code

function has_krumo() {
    @(include_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'devel') . '/krumo/class.krumo.php');
    if (function_exists('krumo') && !drupal_is_cli()) {
        drupal_add_js(drupal_get_path('module', 'devel') . '/devel_krumo.js');
        drupal_add_css(drupal_get_path('module', 'devel') . '/devel_krumo.css');
        // If dpm() is called after status messages have been rendered they will
        // instead appear on the next page load, so ensure the krumo CSS and
        // Javascript files are included.
        krumo::addCssJs();
        return TRUE;
    }
    return FALSE;
}