You are here

public function apachesolr_views_query::alter in Apache Solr Views 7

Same name and namespace in other branches
  1. 6 apachesolr_views_query.inc \apachesolr_views_query::alter()

Let modules modify the query just prior to finalizing it.

Overrides views_plugin_query::alter

File

./apachesolr_views_query.inc, line 109
Views query plugin for Apache Solr Views. Gets its data not from the database, but from a Solr server.

Class

apachesolr_views_query
@file Views query plugin for Apache Solr Views. Gets its data not from the database, but from a Solr server.

Code

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