[pmwiki-users] Fox Filter question
    James DeVain 
    jamesdevain at mail.com
       
    Mon Jan 12 00:10:54 CST 2009
    
    
  
Hi,
I want to create a fox filter which would remove all
commas from any feild named "pagename". What I have
so far is:
$FunktionFilterFunctions['nocomma'] = 'nocomma';
  function nocomma($pagename, $fields) {
   $fields = preg_replace('/,/', ' ', $fields);
  return $fields;
}
This filters commas from every field. How would I make
it filter only fields named "pagename"? Is there a way
to apply the filter to one specific feild just using
the form markup, or do I need to specify that in the
filter itself?
Thanks,
James
-- 
Be Yourself @ mail.com!
Choose From 200+ Email Addresses
Get a Free Account at www.mail.com
    
    
More information about the pmwiki-users
mailing list