5 devel.module dpm($input, $name = NULL)
6 devel.module dpm($input, $name = NULL)
7 devel.module dpm($input, $name = NULL, $type = 'status')

Prints a variable to the 'message' area of the page.

Uses drupal_set_message().


$input: An arbitrary value to output.

string $name: Optional name for identifying the output.

string $type: Optional message type for drupal_set_message(), defaults to 'status'.

Return value

input The unaltered input value.

8 calls to dpm()


contributions/devel/devel.module, line 1860
This module holds functions useful for Drupal development. Please contribute!


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