I have successfully used hook_views_post_execute()
to remove results I do not want from $views->result
.
Now, however, I need to paginate the remaining results.
The code in my hook_views_post_execute()
requires the full result set to work. If I edit the view in the admin interface and set it to 10 items per page with full pagination, the $views->result
in hook_views_post_execute()
will only include 10 items, so my code doesn't function properly.
It looks like I need to use hook_views_pre_render()
to set up the pagination, but I'm not sure how.
Can someone point me in the right direction?