When using EVA (https://www.drupal.org/project/eva) - which allows you to attach views to the $content var - hook_preprocess_views_view doesn't function instead template_preprocess_eva_display_entity_view is required to preprocess views.
To replicate:
Enable, configure and use EVA for at least one view
Enable views_ajax_get
Observe selected view(s) ajax not using 'GET'
The module needs to be updated to use eva's preprocess hook. Patch incoming.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 2564371-5.patch | 620 bytes | leon kessler |
| #2 | 2564371-compatible_with_eva.diff | 945 bytes | paul rowell |
Comments
Comment #2
paul rowell commentedPatch attached
Comment #3
paul rowell commented*change status*
Comment #4
leon kessler commentedThanks. I assumed that
hook_preprocess_views_view()would run for everything. As this is not the case maybe we should move to using another hook completely, such ashook_views_pre_render()There are other modules that embed Views in different ways, so this could also be an issue for them.
e.g.
viewsfield
views_field_view
Comment #5
leon kessler commentedPatch attached with switch to using
hook_views_pre_render().Paul, can you check this works with your EVA views?
Comment #6
paul rowell commentedHi Leon,
Thanks for this, you beat me to it :) Tested and looks good over here.
Comment #8
leon kessler commentedGreat, added to dev. Thanks.