Download & Extend

Action for VBO to approve comments?

Project:Views Bulk Operations (VBO)
Version:6.x-1.9
Component:Actions
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I'm trying to create a view that will allow for bulk approval of comments. I would like to do this in a view so I can control the content type the comments come from and who has access to the page.

As it stands right now I can create a view and can create a link to approve single comments by using the UID. I would love to be able to use VBO to check off multiple comments and approve them.

Can anyone help me write the module necessary for creating this action? I'm sure it would be valuable to more users than just me.

Thanks!

Comments

#1

Title:Active to approve comments» Action for VBO to approve comments?

#2

Category:support request» feature request

Comment actions are lacking in VBO. You need to create an action of type 'comment' that publishes comments. Take a look at the handbook page on writing actions and at the different actions in VBO for examples.

Ideally, your action should invoke functions in comment.module to do the actual work. Take a look at comment_admin_overview_submit() in modules/comment/comment.admin.inc to see what the standard comment admin page does upon submission.

#3

Thank You I'll look into that.

#4

Note that in D7 this works through the "Modify entity values" action.

nobody click here