You are here

function elasticsearch_watchdog_get_cluster_id in Elasticsearch Connector 7

Same name and namespace in other branches
  1. 7.5 modules/elasticsearch_watchdog/elasticsearch_watchdog.module \elasticsearch_watchdog_get_cluster_id()
  2. 7.2 modules/elasticsearch_watchdog/elasticsearch_watchdog.module \elasticsearch_watchdog_get_cluster_id()

Get the cluster_id from settings.

Return value

string

10 calls to elasticsearch_watchdog_get_cluster_id()
elasticsearch_watchdog_clear_log_submit in modules/elasticsearch_watchdog/elasticsearch_watchdog.admin.inc
Form submission handler for elasticsearch_watchdog_clear_log_form().
elasticsearch_watchdog_elasticsearch_connector_edit_lock in modules/elasticsearch_watchdog/elasticsearch_watchdog.module
Implemens hook_elasticsearch_connector_edit_lock().
elasticsearch_watchdog_event in modules/elasticsearch_watchdog/elasticsearch_watchdog.admin.inc
Page callback: Displays details about a specific log message.
elasticsearch_watchdog_filter_delete_confirm_submit in modules/elasticsearch_watchdog/elasticsearch_watchdog.admin.inc
Form submission handler for confirm_form
elasticsearch_watchdog_overview in modules/elasticsearch_watchdog/elasticsearch_watchdog.admin.inc
Page callback: Displays a listing of log messages.

... See full list

File

modules/elasticsearch_watchdog/elasticsearch_watchdog.module, line 93
Created on Jan 06, 2014

Code

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