Needs work
Project:
Views Bulk Operations (VBO)
Version:
7.x-3.2
Component:
Core
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Aug 2014 at 02:20 UTC
Updated:
9 Dec 2019 at 20:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
PascalAnimateur commentedHere's a patch that hides action links on all VBO config / confirm pages using hook_preprocess_page.
Could this break anything?
Comment #3
bojanz commentedI've rewritten the isset() check to only trigger on VBO forms, instead of on all forms, and committed: http://cgit.drupalcode.org/views_bulk_operations/commit/?id=3e27b0b
Thanks for getting the work started.
Comment #5
PascalAnimateur commentedThe latest patch (included in 7.x-3.3) doesn't work because the check should be against $_POST['op'] instead of $_POST['operation'].
Here's a patch that fixes this against 7.x-3.3.
Comment #6
PascalAnimateur commentedComment #7
tessa bakkerBoth patches won't work with a custom VBO action after a required validation error.
Comment #8
PascalAnimateur commentedI've just tried creating a custom VBO action using Rules and add it to an admin_views bulk operations (using stock VBO 7.x-3.3), as I observed earlier the action is still visible on the confirmation step but disappears with my latest patch (changing 'operation' to 'op').
@Tessa Bakker : what do you mean by "required validation error" .. failed condition on a rule component ?
Comment #9
PascalAnimateur commentedUpdated patch which also works when confirming special actions like "Send HTML e-mail" (from mimemail module).
Comment #11
weinewmode commentedthe views_bulk_operations-fix_hide_action_links-2318273-9.patch works. thanks.
I add a css class to the vbo confirm page for further manipulation.