function dpm

Same name in other branches
  1. 7.x-1.x devel.module \dpm()
  2. 8.x-1.x devel.module \dpm()
  3. 4.x devel.module \dpm()
  4. 5.x devel.module \dpm()

Print a variable to the 'message' area of the page. Uses drupal_set_message()

1 call to dpm()
dsm in ./devel.module

File

./devel.module, line 1853

Code

function dpm($input, $name = NULL) {
    if (user_access('access devel information')) {
        $export = kprint_r($input, TRUE, $name);
        drupal_set_message($export);
    }
}