You are here

elasticsearch_connector_views.module in Elasticsearch Connector 7

Provides Views Implementation for the Elasticsearch Connector project

http://drupal.org/project/elasticsearch_connector

File

modules/elasticsearch_connector_views/elasticsearch_connector_views.module
View 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;
}