function dvm

Same name in other branches
  1. 4.x devel.module \dvm()
  2. 5.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

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;
}