You are here

function elasticsearch_watchdog_get_index_name in Elasticsearch Connector 7.5

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

Return the index name.

Return value

string

9 calls to elasticsearch_watchdog_get_index_name()
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_overview in modules/elasticsearch_watchdog/elasticsearch_watchdog.admin.inc
Page callback: Displays a listing of log messages.
elasticsearch_watchdog_settings_validate in modules/elasticsearch_watchdog/elasticsearch_watchdog.admin.inc
Validate the setting form submission.

... See full list

File

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

Code

function elasticsearch_watchdog_get_index_name($index_name = NULL) {
  if (!isset($index_name)) {
    $cluster_info = variable_get('elasticsearch_watchdog_cluster_id', array());
    $index_name = $cluster_info['index'];
  }
  return $index_name;
}