You are here

function dargs in Devel 7

Same name and namespace in other branches
  1. 8.3 devel.module \dargs()
  2. 8 devel.module \dargs()
  3. 8.2 devel.module \dargs()
  4. 5 devel.module \dargs()
  5. 6 devel.module \dargs()
  6. 4.x devel.module \dargs()

Prints the arguments passed into the current function.

File

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

Code

function dargs($always = TRUE) {
  static $printed;
  if ($always || !$printed) {
    $bt = debug_backtrace();
    print kdevel_print_object($bt[1]['args']);
    $printed = TRUE;
  }
}