Answer by Allan Thomas for Running a function before a View executes
I first used hook_views_query_alter(). While the code below does work I needed a solution that was a better fit my entire situation.$view->init_pager();$view->set_items_per_page(x);The better...
View ArticleAnswer by mpdonadio for Running a function before a View executes
Not a full answer to your question, but I typically set items_per_page in hook_views_pre_build, likefunction mymodule_views_pre_build (&$view){ if ($_GET["perpage"]) { $perpage =...
View ArticleAnswer by Countzero for Running a function before a View executes
The hook you're looking for is probably pre_render. There you can execute your function and replace the first row of the view with whatever you want.
View ArticleAnswer by tenken for Running a function before a View executes
You might be interested in a similiar kind of question I answered here:How do you customize the title of an RSS feed created by Views RSS?I would just set the view size to 10 always. And then use...
View ArticleRunning a function before a View executes
I have a carousel built using Views (7.x-3.x) that displays 10 items. In this carousel I would like to place 1 item (inclusive of the 10) that displays Twitter content. What I would like to do is run...
View Article
More Pages to Explore .....