Add comment_mass_update()

Created on 8 January 2009, over 15 years ago
Updated 19 June 2023, 12 months ago

Similarly to #355905: node_delete_multiple() has to use batch API β†’ , I discovered that there are no functions for mass-updating comments in a batch yet.

Aside from the fact that an administrator can delete many comments using the node mass-operations on admin/content/comment, the new account cancellation methods also allow administrators to delete all contents of a user. When an administrator is forced to delete a long-time user with all of his content, then this could easily result in thousands of comments having to be deleted.

We have two options to solve this issue:

  1. Introduce a comment_mass_update() function, using the same pattern as node_mass_update(), and also a comment_mass_delete() function - most probably leading to almost identical/duplicated code.
  2. Introduce a comment_mass_update() function, using the same pattern as the proposed for node_mass_update(), i.e. passing array('cid' => NULL) can only mean that comments shall be deleted.
πŸ“Œ Task
Status

Closed: duplicate

Version

9.5

Component
CommentΒ  β†’

Last updated 2 days ago

Created by

πŸ‡©πŸ‡ͺGermany sun Karlsruhe

Live updates comments and jobs are added and updated live.
  • API clean-up

    Refactors an existing API or subsystem for consistency, performance, modularization, flexibility, third-party integration, etc. May imply an API change. Frequently used during the Code Slush phase of the release cycle.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024