You are here

function google_analytics_reports_plugin_query_google_analytics::alter in Google Analytics Reports 7.3

Let modules modify the query just prior to finalizing it.

Parameters

view $view: The view which is executed.

Overrides views_plugin_query::alter

File

plugins/google_analytics_reports_plugin_query_google_analytics.inc, line 203
Defines the default query object which builds queries for the Google Analytics Reports API.

Class

google_analytics_reports_plugin_query_google_analytics
Object used to create a Google Analytics Core Reporting API query.

Code

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