You are here

function elasticsearch_watchdog_get_realindex_name in Elasticsearch Connector 7

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

Return the real index name.

Return value

string

4 calls to elasticsearch_watchdog_get_realindex_name()
elasticsearch_watchdog_elasticsearch_connector_edit_lock in modules/elasticsearch_watchdog/elasticsearch_watchdog.module
Implemens hook_elasticsearch_connector_edit_lock().
elasticsearch_watchdog_settings_validate in modules/elasticsearch_watchdog/elasticsearch_watchdog.admin.inc
Validate the setting form submission.
elasticsearch_watchdog_uninstall in modules/elasticsearch_watchdog/elasticsearch_watchdog.install
Implements hook_uninstall().
elasticsearch_watchdog_update_7001 in modules/elasticsearch_watchdog/elasticsearch_watchdog.install
Updating the watchdog settings to handle the new

File

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

Code

function elasticsearch_watchdog_get_realindex_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;
}