Skip to content

Commit 6675249

Browse files
committed
Merge branch 'master' into self-hosted
2 parents 748cf42 + 60ab0f9 commit 6675249

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

development/core-callbacks-reference.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,15 +179,22 @@ These callbacks are raised when input elements or constructs are rendered. They
179179

180180
#### Articles panel
181181

182+
`articles > multi_edit.{action}` (where `action` is `delete`, `changeauthor`, `changecategory1`, `changecategory2`, `changecomments`, `changesection`, `changestatus`, or a plugin's action)
183+
* **When it occurs:** Either before (pre=1) or after (pre=0) one or more articles have been altered via the multi-edit tool.
184+
* **What it allows:** To perform any additional functionality when one or more articles are changed, or about to be changed via the multi-edit tool.
185+
* **Additional parameter:** An array of affected article IDs, the database field affected, and the new value assigned.
186+
182187
`articles_deleted`
183188
* **When it occurs:** After one or more articles have been deleted and any associated comments have had their visibility removed.
184189
* **What it allows:** To do any additional cleanup after one or more articles are removed from Textpattern.
185190
* **Additional parameter:** An array of deleted article IDs.
191+
* **Note:** Will be phased out in favour of the above `articles > multi_edit.{action}` (pre=0) callback in future.
186192

187-
`multi_edited.articles > {action}` (where `action` is `delete`, `changeauthor`, `changecategory1`, `changecategory2`, `changecomments`, `changesection`, or `changestatus`)
193+
`multi_edited.articles > {action}` (where `action` is `delete`, `changeauthor`, `changecategory1`, `changecategory2`, `changecomments`, `changesection`, `changestatus`, or a plugin's action)
188194
* **When it occurs:** After one or more articles have been altered via the multi-edit tool.
189195
* **What it allows:** To perform any additional functionality after one or more articles are changed via the multi-edit tool.
190196
* **Additional parameter:** An array of affected article IDs, the database field affected, and the new value assigned.
197+
* **Note:** Will be phased out in favour of the above `articles > multi_edit.{action}` (pre=0) callback in future.
191198

192199
#### Categories panel
193200

@@ -381,7 +388,7 @@ See also `authors_deleted`.
381388
* **What it allows:** To do any additional processing after user metadata has been modified.
382389
* **Additional parameter:** An array containing a list of the `user` names affected and new privilege level they have been assigned.
383390

384-
### Plugins panel
391+
#### Plugins panel
385392

386393
`txp.plugin > data.fetch`
387394
* **When it occurs:** As a plugin's internal data is fetched from the database.

0 commit comments

Comments
 (0)