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) . "
"); }

Comments

Popular Posts