- Modify draft saving
- saving the draft
This is the data you can use and modify in the event. This is also what is saved in serialized form as a draft at the end.
$data = [ 'id' => 'pageid' 'prefix' => 'text before the edited section', 'text' => 'text of the edited section', 'suffix' => 'text after the edited section', 'date' => '1598944648', // unix timestamp of when editing started 'client' => 'andi', // client identification. user name, ip address // or similar 'cname' => 'data/cache/...', // cache file where the draft is to be saved 'errors' => , // list of errors that should be shown to the end user ];
devel/event/draft_save.txt · Last modified: 2020-10-27 11:32 by s-sahara