This patch adds an option to views_build_view that when called will only return the queries, but not actually run them. This is useful for modules that might want to simple run the summary count query without getting all the results back. It could also be useful for a module that wants to get a total number of nodes in a view, but then just load a page from that total.

Basically, all it does is return the $info array _before_ paging or running the query. It includes a change to the doc before the function.

CommentFileSizeAuthor
views_queries_only0.patch1.14 KBmfredrickson
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

looks reasonable and simple.

merlinofchaos’s picture

Status: Reviewed & tested by the community » Fixed

Applied. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)