You are here

function view::_pre_query in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 includes/view.inc \view::_pre_query()
  2. 7.3 includes/view.inc \view::_pre_query()

Run the pre_query() on all active handlers.

1 call to view::_pre_query()
view::build in includes/view.inc
Build the query for the view.

File

includes/view.inc, line 387
view.inc Provides the view object type and associated methods.

Class

view
An object to contain all of the data to generate a view, plus the member functions to build the view query, execute the query and render the output.

Code

function _pre_query() {
  foreach (views_object_types() as $key => $info) {
    $handlers =& $this->{$key};
    $position = 0;
    foreach ($handlers as $id => $handler) {
      $handlers[$id]->position = $position;
      $handlers[$id]
        ->pre_query();
      $position++;
    }
  }
}