1 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

core/modules/views/plugins/views_plugin_query_default.inc, line 1392
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);
  }
}