You are here

function dvm in Devel 7

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. 5 devel.module \dvm()
  5. 6 devel.module \dvm()
  6. 4.x devel.module \dvm()

Displays a drupal_var_export() variable to the 'message' area of the page.

Uses drupal_set_message().

Parameters

$input: An arbitrary value to output.

string $name: Optional name for identifying the output.

Return value

input The unaltered input value.

See also

drupal_set_message()

drupal_var_export()

File

./devel.module, line 1977
This module holds functions useful for Drupal development.

Code

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