function audit_log_elastic_search_get_realindex_name in Audit Log 7
Return the real index name.
Return value
string
1 call to audit_log_elastic_search_get_realindex_name()
- audit_log_elastic_search_settings_validate in modules/
audit_log_elastic_search/ audit_log_elastic_search.admin.inc - Validate the setting form submission.
File
- modules/
audit_log_elastic_search/ audit_log_elastic_search.module, line 105 - Hook implemenations for the Audit elastic search logging module.
Code
function audit_log_elastic_search_get_realindex_name($index_name = NULL) {
if (!isset($index_name)) {
$cluster_info = variable_get('audit_log_elastic_search_cluster_id', array());
$index_name = $cluster_info['index'];
}
return $index_name;
}