You are here

function sdpm in Search Krumo 7

A function that adds backtracing capability to Devels dpm().

With this function we can copy the variable that is called in sdpm(), so we can make life easier for developers.

Parameters

arbitrary $input: An arbitrary value to output.

string $name: (optional) Name for identifying the output.

File

./search_krumo.module, line 18
Code for the Search Krumo module.

Code

function sdpm($input, $name = NULL) {

  // Get the label that we should prepend to each 'Get path' button.
  $label = search_krumo_inspect();
  drupal_add_js(array(
    'searchKrumo' => array(
      'variable' => array(
        $label,
      ),
    ),
  ), 'setting');

  // Route it to the dpm() function provided by the Devel module.
  dpm($input, $name);
}