I'm looking to use view bulk operations in a user efq view. How would I go about handling that?

CommentFileSizeAuthor
#7 efq_views-support_vbo-2014155-7.patch2.71 KBiamEAP
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rinku_talukdar’s picture

Priority: Normal » Major

Hi 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

joekrukosky’s picture

I 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.

bojanz’s picture

VBO 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.

iamEAP’s picture

Issue summary: View changes

For 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

chx’s picture

Hrm, I would be glad to merge that into this module if you were to submit it as a patch instead?

iamEAP’s picture

Sure, I'll give it a go.

iamEAP’s picture

Status: Active » Needs review
FileSize
2.71 KB

That module, in patch form. Was unsure how best to let it mesh with the existing stuff in the views.inc; reviews welcome!

chx’s picture

Thanks 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.

  • chx committed 15f9080 on 7.x-1.x authored by iamEAP
    Add VBO integration by iamEAP #2014155
    

  • chx committed 15f9080 on 8.x-1.x authored by iamEAP
    Add VBO integration by iamEAP #2014155