If you look at vew::pre_execute you see that it executes hook_views_pre_view and not something before executing the query.
Maybe it should be documented that this is runned before building something.

Comments

merlinofchaos’s picture

I agree. That phase came in at the last minute when I discovered that I had set up paging information wrong. It should be pre_build(). It was named because it was supposed to be prior to 'execute_display' but time and history have compounded the error.

We could rename it pre_build() and hten provide pre_execute() as a deprecated pointer to pre_build() with an explanation. That would preserve the API but bring it inline with the correct naming attributes.

dawehner’s picture

Working on this specific issue wasn't as easy as i thought, but i guess it should be possible with some amount of concentration.

dawehner’s picture

Category: bug » task

This is more a task then a bug.

mustanggb’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Doesn't seem like a good idea to think about changing it at this time.