Skip to content

Instantly share code, notes, and snippets.

@hawkeyetwolf
Last active December 22, 2015 16:49
Show Gist options
  • Save hawkeyetwolf/ac5721aa929bcd15581c to your computer and use it in GitHub Desktop.
Save hawkeyetwolf/ac5721aa929bcd15581c to your computer and use it in GitHub Desktop.
Watchdog with Krumo
<?php
$path = '/' . drupal_get_path('module', 'devel');
$js = $path . '/krumo/krumo.js';
$css = $path . '/krumo/skins/orange/skin.css';
$vars = array(
'!script' => "<script type='text/javascript' src='$js'></script>",
'!link' => "<link rel='stylesheet' type='text/css' href='$css'></link>",
);
watchdog('debug', kprint_r($_GET, TRUE) . '!script !link', $vars, WATCHDOG_DEBUG);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment