function elasticsearch_connector_check_status in Elasticsearch Connector 7
Same name and namespace in other branches
- 7.5 elasticsearch_connector.module \elasticsearch_connector_check_status()
- 7.2 elasticsearch_connector.module \elasticsearch_connector_check_status()
Check if the status is OK.
Parameters
array $status:
Return value
bool
11 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_get_cluster_info in ./
elasticsearch_connector.module - Return cluster info.
- elasticsearch_connector_info_cluster in ./
elasticsearch_connector.admin.inc
File
- ./
elasticsearch_connector.module, line 840 - 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;
}
}