You are here

public function views_plugin_query_default::alter in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_query_default.inc \views_plugin_query_default::alter()

Let modules modify the query just prior to finalizing it.

Overrides views_plugin_query::alter

File

plugins/views_plugin_query_default.inc, line 1438
Definition of views_plugin_query_default.

Class

views_plugin_query_default
Object used to create a SELECT query.

Code

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