NetBeans code template for using functions' various arguments
===

Is it possible to write a NetBeans code template for **using different functions' arguments**, and **call other functions with these variables**, **depending on the number of arguments**?

To clarify my question, I write an example. I'm developing in Drupal, and use Devel module's different functions, like [dsm()][1] for debugging purposes. With this, I sometimes want to print out all the arguments in a function. But the number of arguments in different functions can be different.  
  
Here's an example usage:

    /**
     * Implementation of hook_theme().
     */
    function testModule_theme($existing, $type, $theme, $path) {
      dsm($existing, '$existing in ' . __FUNCTION__ . '()');
      dsm($type, '$type in ' . __FUNCTION__ . '()');
      dsm($theme, '$theme in ' . __FUNCTION__ . '()');
      dsm($path, '$path in ' . __FUNCTION__ . '()');
    
      return array(
        // ......
      );
    }

Here's another one:

    function testModule_block_view($delta = '') {
      dsm($delta, '$delta in ' . __FUNCTION__ . '()');
      $block = array();
      // .....
      return $block;
    }

As you can see, there are 4 arguments in the first case, and only 1 in the second. The name of the arguments is also changing depending on the given function.  

[There's a code template I already wrote][2] for using `dsm()` function the way that I just type `ddsm`, hit <kbd>Tab</kbd>, and then I have to type the exact name of the variable:

    dsm($$${VARIABLE newVarName default="variables"}, '$$${VARIABLE} in '.__FUNCTION__.'()');

So it would print out the following:

    dsm($variables, '$variables in ' . __FUNCTION__ . '()');

After that, I can change the `variables` part, and type another name, and the same would be used in the string.

But I'm still too laggard to type that stuff :D, and I'm curious if there is a way to use all the arguments of a given function when using a code template in NetBeans.



  [1]: http://api.drupal.org/api/devel/devel.module/function/dsm/7 "Devel module's dsm&#40;&#41; function"
  [2]: http://i.imgur.com/bBBw6.png "Code template for using dsm&#40;&#41;"