devel:event:io_wikipage_write
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
devel:event:io_wikipage_write [2008-10-27 16:34] – added example plugin chi | devel:event:io_wikipage_write [2018-05-29 17:21] – andi | ||
---|---|---|---|
Line 15: | Line 15: | ||
Page deletion may be detected by checking for empty page content. | Page deletion may be detected by checking for empty page content. | ||
- | |||
===== Passed Data ===== | ===== Passed Data ===== | ||
+ | The passed [[xref> | ||
- | | + | The '' |
+ | | ||
* $data[0][0] -- the file path. | * $data[0][0] -- the file path. | ||
* $data[0][1] -- the content to be saved, and may be modified. | * $data[0][1] -- the content to be saved, and may be modified. | ||
+ | * $data[0][2] -- whether given content will be appended, default false. | ||
* $data[1] -- ns: The colon separated namespace path minus the trailing page name. (false if root ns) | * $data[1] -- ns: The colon separated namespace path minus the trailing page name. (false if root ns) | ||
* $data[2] -- | * $data[2] -- | ||
* $data[3] -- rev: The page revision, false for current wiki pages. | * $data[3] -- rev: The page revision, false for current wiki pages. | ||
+ | |||
+ | In the BEFORE event handler the '' | ||
+ | |||
+ | In the AFTER event handler the '' | ||
===== Plugins handling this event ===== | ===== Plugins handling this event ===== | ||
Line 29: | Line 35: | ||
The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself. | The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself. | ||
- | * [[: | + | * [[plugin:data]], [[plugin: |
===== See also ===== | ===== See also ===== | ||
+ | * [[codesearch> | ||
* [[devel: | * [[devel: | ||
* [[devel: | * [[devel: | ||
* [[IO_WIKIPAGE_READ]] | * [[IO_WIKIPAGE_READ]] | ||
- | |||
- |
devel/event/io_wikipage_write.txt · Last modified: 2018-12-08 15:46 by torpedo