You are here

function elasticsearch_connector_check_status in Elasticsearch Connector 7.5

Same name and namespace in other branches
  1. 7 elasticsearch_connector.module \elasticsearch_connector_check_status()
  2. 7.2 elasticsearch_connector.module \elasticsearch_connector_check_status()

Check if the status is OK.

Parameters

array $status:

Return value

bool

9 calls to elasticsearch_connector_check_status()
elasticsearch_connector_cluster_indices in ./elasticsearch_connector.admin.inc
Elasticsearch Connector display all indices in cluster.
elasticsearch_connector_cluster_indices_aliases in ./elasticsearch_connector.admin.inc
List all aliases for an index.
elasticsearch_connector_edit_cluster_validate in ./elasticsearch_connector.admin.inc
Handle the cluster add/edit validations.
elasticsearch_connector_info_cluster in ./elasticsearch_connector.admin.inc
elasticsearch_connector_statistics_requirements in modules/elasticsearch_connector_statistics/elasticsearch_connector_statistics.install
Implements hook_requirements().

... See full list

File

./elasticsearch_connector.module, line 847
This module provide an interface to connecting to the elasticsearch cluster and implementing the official Elasticsearch library.

Code

function elasticsearch_connector_check_status($status) {
  if (is_array($status) && $status['status'] == ELASTICSEARCH_CONNECTOR_CLUSTER_STATUS_OK) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}