You are here

function dargs in Devel 8

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

Prints the arguments passed into the current function.

File

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

Code

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