Blog Archive

Monday, 17 March 2014

Drupal 7 custom function like dsm() without using devel module.

function sm($array, $exit = false) { if ($exit) { print "
" . print_r($array, true) . "
"; exit; } drupal_set_message("
" . print_r($array, true) . "
"); }

No comments:

Post a Comment