You are here

function elasticsearch_watchdog_get_type_name in Elasticsearch Connector 7

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

Return the name of the Elasticsearch type.

Return value

string

3 calls to elasticsearch_watchdog_get_type_name()
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_watchdog in modules/elasticsearch_watchdog/elasticsearch_watchdog.module
Implements hook_watchdog().

File

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

Code

function elasticsearch_watchdog_get_type_name($type = NULL) {
  if (isset($type)) {
    return $type;
  }
  else {
    return variable_get('elasticsearch_watchdog_type', ELASTICSEARCH_WATCHDOG_DEFAULT_TYPE);
  }
}