Page 1 of 1

Questions about the API

Posted: Fri Jul 23, 2004 1:28 am
by Maliuta
I note in the get_config() method there is a parameter for default value. How does this work? If I want a default value of 30 do I just pass is like get_config('my_config', 30)?

I would really like to be able to code the default values in like that.

I am also interested in what types I can put in the configuration ... everyone uses "text", but I also see "select" used in one plugin.

Nikolai

Re: Questions about the API

Posted: Fri Jul 23, 2004 1:59 pm
by garvinhicking
Yes. Exactly like you wrote it, it works. :-)

The available types are: seperator, select, boolean, radio, string, html, hidden. Grep through the plugins to see examples for plugins using that methods. Some of them need an extra bag value 'select_values' to be set.

Regards,
Garvin.