function elasticsearch_connector_cluster_delete in Elasticsearch Connector 7
Same name and namespace in other branches
- 7.5 elasticsearch_connector.module \elasticsearch_connector_cluster_delete()
- 7.2 elasticsearch_connector.module \elasticsearch_connector_cluster_delete()
Delete an ElasticSearch cluster.
Parameters
stdclass $cluster: A cluster configuration object.
1 call to elasticsearch_connector_cluster_delete()
- elasticsearch_connector_delete_cluster_submit in ./
elasticsearch_connector.admin.inc - Handle the submit from elasticsearch_connector_delete_cluster() form.
File
- ./
elasticsearch_connector.module, line 616 - This module provide an interface to connecting to the elasticsearch cluster and implementing the official Elasticsearch library.
Code
function elasticsearch_connector_cluster_delete($cluster) {
db_delete('elasticsearch_connector_cluster')
->condition('cluster_id', $cluster->cluster_id)
->execute();
}