On Wed, Dec 29, 2010 at 2:41 PM, Shankar Dhanasekaran <
[email protected]> wrote:
> Hello all,
> This might seem very trivial to many, but not having studied programming
> academically and having learned php through self-study alone all the way
> while leaning drupal, I have a small question.
>
> function _nodereference_formatters_fieldset($legend, $value,
> $collapsed=TRUE, $description=NULL) {
> //form variable built
>
> return drupal_render($form);
> }
>
>
_nodereference_formatters_fieldset('some legend', 'some value',true, 'some
description');
you can send default value true,
> I know I can call the above function with two parameters alone. (1 and
> 2nd).
> This will call the function with NULL value for 3rd and 4th parameter.
> However, what I want to know is how do people call this function when they
> wanted to put in 3 parameters (1,2 and 4th) and leave the 3rd one to
> default
> NULL?
>
>
third parameter will be true by default not NULL
> To say it more clearly, how do people call
> _nodereference_formatters_fieldset('some legend', 'some value', 'some
> description'); (Please note, 3rd parameter is not description, but a
> boolean value in the original function which I want to leave to default.
>
> Thanks,
> Shankar
> _______________________________________________
> ILUGC Mailing List:
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>
--
Regards
Mukesh Yadav
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc