Add comment_mass_update()

Created on 8 January 2009, almost 16 years ago
Updated 19 June 2023, over 1 year 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 about 1 hour 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.71.5 2024