Use Case:
During our training, we have found that the 'sticky' and 'promote' options are not always needed or even understood by the users. So, we have been manually removing these options.
Description:
It would be helpful to add a series of checkboxes that correlate to the operations. The default values for all would be checked for a normal VBO interface. But the person setting up a new CA interface would have the option to uncheck certain operations and the code would then no longer provide them in the Bulk Operations dropdown.
Proposed Solution:
Edit contrib/context_admin_vbo/plugins/context_admin/views_bulk_menu.inc and add additional form group with checkboxes for Operations.
Also, add another group of checkboxes to define which fields (columns) that we would like to display
Update the submit handler to manage these additional fom entries
Edit contrib/context_admin_vbo/includes/context_admin_vbo.views_default.inc to update the foreach of context_admin_vbo_views_default_views to manage the new $handler attributes.
Then add new parameters to pass to context_admin_vbo_default_view.
Finally, in the definition of context_admin_vbo_default_view, add the logic to handle turning the different fields and operations on or off as specified in the above variables.
Comments
Comment #1
Steven Brown CreditAttribution: Steven Brown commentedsubscribe
Comment #1.0
kvanderw CreditAttribution: kvanderw commentedBased on a conversation with Kris, added a Proposed Solution section above.
Comment #1.1
kvanderw CreditAttribution: kvanderw commentedMade titles bold. (I hope)