You are here

function dvm in Devel 5

Same name and namespace in other branches
  1. 8.3 devel.module \dvm()
  2. 8 devel.module \dvm()
  3. 8.2 devel.module \dvm()
  4. 6 devel.module \dvm()
  5. 7 devel.module \dvm()
  6. 4.x devel.module \dvm()

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

File

./devel.module, line 1284

Code

function dvm($input, $name = NULL) {
  if (user_access('access devel information')) {
    $export = dprint_r($input, TRUE, $name, 'var_dump', FALSE);
    drupal_set_message($export);
  }
}