You are here

function audit_log_elastic_search_get_cluster_id in Audit Log 7

Get the cluster_id from settings.

Return value

string

1 call to audit_log_elastic_search_get_cluster_id()
audit_log_elastic_search_audit_log in modules/audit_log_elastic_search/audit_log_elastic_search.module
Implements hook_audit_log().

File

modules/audit_log_elastic_search/audit_log_elastic_search.module, line 91
Hook implemenations for the Audit elastic search logging module.

Code

function audit_log_elastic_search_get_cluster_id() {
  $client_info = variable_get('audit_log_elastic_search_cluster_id', array());
  if (isset($client_info['cluster_id'])) {
    return $client_info['cluster_id'];
  }
  return FALSE;
}