function views_plugin_query_default::alter

3.x views_plugin_query_default.inc views_plugin_query_default::alter(&$view)

Let modules modify the query just prior to finalizing it.

Overrides views_plugin_query::alter

File

plugins/views_plugin_query_default.inc, line 1388
Defines the default query object.

Class

views_plugin_query_default
Object used to create a SELECT query.

Code

function alter(&$view) {
  foreach (module_implements('views_query_alter') as $module) {
    $function = $module . '_views_query_alter';
    $function($view, $this);
  }
}