[pmwiki-users] Passing argument into a function... arrgh!
Patrick R. Michaud
pmichaud at pobox.com
Sun Mar 26 08:36:23 CST 2006
On Sun, Mar 26, 2006 at 08:50:49AM -0500, The Editor wrote:
> I'm still having a devil of a time trying to get my markup function to
> work properly. I want to pass in the current page name, and an
> optional parameter for the $nextpage. I've followed some tips from
> other list members, but nothing seems to work. Can anyone see what is
> wrong with this markup. (My latest attempt):
>
> Markup('htpasswdform', '<split', '/\\(:membership (.*?):\\)/',
> 'HtpasswdForm($pagename,$1)');
The general form for one argument is:
Markup('htpasswdform', '<split',
'/\\(:membership (.*?):\\)/e',
"HtpasswdForm(\$pagename, PSS('$1'))");
Pm
More information about the pmwiki-users
mailing list