Yes, you are right Mukesh. Sorry for the confusion.third parameter will be true by default not NULL
On Wed, Dec 29, 2010 at 2:41 PM, Shankar Dhanasekaran <
shankar at neokrish.co.in> wrote:
Hello all,_nodereference_formatters_fieldset('some legend', 'some value',true, 'some
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);
}
description');
you can send default value true,
I know I can call the above function with two parameters alone. (1 andthird parameter will be true by default not NULL
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?
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