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


_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to