Prepending the function argument with an ampersand character causes it to be
passed it in by reference. That means you are directly manipulating the
original variable inside your function, rather than a copy.
function wfProcessCite( $str, $key, $call ){
$str = ‘new value’;
Arcane 21 arcane at live.com writes:
I recommend using the MW 1.22.4 tarball to base this on. The MW 1.22.3
extensions are the wrong branch and
produce errors, assuming you're using the Cite extension that was bundled
with the 1.22.3 tarball..
I've upgraded my MW installation and the
On Mon, Mar 17, 2014 at 5:56 PM, Amelia Ireland amelia.irel...@gmod.orgwrote:
Perhaps someone can help me sort out the syntax for writing an event
handler that modifies an existing value.
I believe you want the ampersands in the function definition, not the
function call.