RTFM... http://www.question2answer.org/modules.php?module=filter
If the question is being edited, $oldquestion
will contain an array of the previous values, otherwise it will be null
. The elements in these arrays are described in the table below - any element may be absent, so your function should check with isset()
as appropriate.
To identify a new post I am using now: if( is_null($oldquestion) ) { ... } and it works.