elasticsearch_connector_views.module in Elasticsearch Connector 7
Same filename and directory in other branches
Provides Views Implementation for the Elasticsearch Connector project
File
modules/elasticsearch_connector_views/elasticsearch_connector_views.moduleView source
<?php
/**
* @file
* Provides Views Implementation for the Elasticsearch Connector project
*
* http://drupal.org/project/elasticsearch_connector
*/
/**
* Implementation of hook_views_api().
*/
function elasticsearch_connector_views_views_api() {
return array(
'api' => '3.0',
);
}
/**
* Implements hook_views_query_alter().
*/
function elasticsearch_connector_views_views_query_alter($view, $query) {
}
/**
* Implemens hook_elasticsearch_connector_edit_lock().
*/
function elasticsearch_connector_views_elasticsearch_connector_edit_lock($type, $cluster, $index = NULL) {
// TODO: Check if the cluster or the index can be editted or lock it by returning TRUE.
// We need to think if this is necessary.
return FALSE;
}
Functions
Name | Description |
---|---|
elasticsearch_connector_views_elasticsearch_connector_edit_lock | Implemens hook_elasticsearch_connector_edit_lock(). |
elasticsearch_connector_views_views_api | Implementation of hook_views_api(). |
elasticsearch_connector_views_views_query_alter | Implements hook_views_query_alter(). |