It would be great that if instead of custom callbacks for approve, decline and edit actions were described that allow to integrate with Views Bulk Operations - simplest example would be approving or declining multiple transactions at once.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Live Preview.jpg | 83.89 KB | saday |
| #5 | VBO settings.jpg | 118.43 KB | saday |
| #2 | userpoints_vbo.zip | 1 KB | gease |
Comments
Comment #1
berdirComment #2
geaseWell, I'm attaching a small module that adds "approve" and "decline" actions for Views Bulk Operations for 6.x branch of Userpoints. To make it work you also need to describe txn_id column to views: add
to userpoints.views.inc
Comment #3
saday commentedI have enabled the userpoints_VBO module and added the code to userpoints.views.inc. Now the approve/decline is showing up in the VBO operations but it is not showing up in the pull down selector on the view. Please help.
Comment #4
gease@saday: I haven't quite got what you're talking about. Could you please post screenshot of VBO settings from views admin page and screenshot of your actual view? Thanks.
Comment #5
saday commented@gease I have attached screen shot of the VBO settings on the edit view page. The Approve/Decline shows up here as options. And I selected them and updated the view.
I have also attached screen shot of the Live Preview that I get after updating. In the Operations pull down selector. Approve and Decline does not appears. Hope you understand now. Please help.
Comment #6
gease#5: I cannot reproduce your issue. I tried playing around with the settings on my installation, moving and even removing transaction id from fields, but VBO selection always stays fine. So I can give you just suggestions of general character like: clear cache; try changing operations selection from drop-down list to buttons; try checking other operations to make sure they work etc. If this doesn't help, I can have a look at your installation. If you'd like this, contact me via pmb.
Comment #7
manuel.adanClosing this as outdated, 6.x version is no longer maintained.