[pmwiki-users] How to pass markup values to function . . .

Ben Wilson dausha at gmail.com
Tue Feb 8 15:49:02 CST 2005


On Tue, 08 Feb 2005 18:33:39 +0100, Knut Alboldt <pmwiki at alboldt.de> wrote:
> Ben Wilson schrieb:
> > I have a markup, such as:
> >
> > (:thismarkup key=value:)
> >
> > And I want to pass the key=value to a function where the values can
> > the be put into form fields. How can I pass the values?
> >
> 
> how about this (I've put that into config.php):
> 
> function GetDirectiveArgs($args,$opt=array())
[snip]

> function TestgetArg($args)

[snip]

When I test using your code, I get:

Array
(
    [default] => DEFAULT
    [arg1] => DEFAULT ARG1
    [$1] => 1
)

And, this is the problem I have. The value of $args remains $1 until
rendered--which is too late for my function.
-- 
Ben Wilson
" Mundus vult decipi, ergo decipiatur"



More information about the pmwiki-users mailing list