Skip to content

Commit 60ab0f9

Browse files
authored
Document articles > multi_edit.{action}
1 parent 81043b0 commit 60ab0f9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

development/core-callbacks-reference.md

Lines changed: 8 additions & 1 deletion
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

0 commit comments

Comments
 (0)