function dvm in Devel 7
Same name and namespace in other branches
- 8.3 devel.module \dvm()
- 8 devel.module \dvm()
- 8.2 devel.module \dvm()
- 5 devel.module \dvm()
- 6 devel.module \dvm()
- 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
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;
}