Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm looking to use view bulk operations in a user efq view. How would I go about handling that?
Comment | File | Size | Author |
---|---|---|---|
#7 | efq_views-support_vbo-2014155-7.patch | 2.71 KB | iamEAP |
Comments
Comment #1
rinku_talukdar CreditAttribution: rinku_talukdar commentedHi All,
I have also the same thing needed for one project. I did not found any way to implement views bulk operation for EntityFieldQuery Views Backend.
Is there anything which I can use?
Thanks
Rinku
Comment #2
joekrukoskyI have resorted to just not using views. Instead I am using the form api and outputting lists from EFQ as a themed table.
Some resources I used:
http://api.drupal.org/api/drupal/includes%21theme.inc/function/theme_tab...
http://drupal.org/node/156863
With sort and paging:
http://www.drup-all.com/blog/table-sort-pagination-drupal-7
Hope this helps.
Comment #3
bojanz CreditAttribution: bojanz commentedVBO needs to convert to a backend-agnostic field, that is a requirement for Search API to use it as well.
This was blocked on Views get_result_values() not supporting revisioned entities.
This has now been fixed in the D8 branch and there's an initial backport to D7 (#1802438: get_result_entities() Doesn't support revisions), so once that lands, VBO can be converted.
Comment #4
iamEAP CreditAttribution: iamEAP commentedFor those who find this thread via Google... I was able to pretty easily get VBO working with EFQ Views. Seemed to work fine for the entities I tested, including entities provided via Remote Entities...
Rolled it into a generic module here: https://drupal.org/project/efq_vbo
Comment #5
chx CreditAttribution: chx commentedHrm, I would be glad to merge that into this module if you were to submit it as a patch instead?
Comment #6
iamEAP CreditAttribution: iamEAP commentedSure, I'll give it a go.
Comment #7
iamEAP CreditAttribution: iamEAP commentedThat module, in patch form. Was unsure how best to let it mesh with the existing stuff in the views.inc; reviews welcome!
Comment #8
chx CreditAttribution: chx commentedThanks much, I committed this as it is. If it's not the best, there's always the next commit. It's just an addition, can't break anything existing.