function elasticsearch_watchdog_add_additional_indexes in Elasticsearch Connector 7.5
Add additional indexes if any.
Parameters
string $index: Watchdog index name.
Return value
string The indexes to search in.
2 calls to elasticsearch_watchdog_add_additional_indexes()
- elasticsearch_watchdog_overview in modules/
elasticsearch_watchdog/ elasticsearch_watchdog.admin.inc - Page callback: Displays a listing of log messages.
- _elasticsearch_watchdog_get_facets in modules/
elasticsearch_watchdog/ elasticsearch_watchdog.module - Return message types FACET.
File
- modules/
elasticsearch_watchdog/ elasticsearch_watchdog.module, line 236 - Created on Jan 06, 2014
Code
function elasticsearch_watchdog_add_additional_indexes($index) {
$additional = variable_get('elasticsearch_watchdog_view_additional_indexes', '');
if (!empty($additional)) {
return implode(',', array(
$index,
$additional,
));
}
return $index;
}