You are here

function apachesolr_environment_variable_get in Apache Solr Search 8

Same name and namespace in other branches
  1. 6.3 apachesolr.module \apachesolr_environment_variable_get()
  2. 7 apachesolr.module \apachesolr_environment_variable_get()

Get a named variable, or return the default.

See also

variable_get()

24 calls to apachesolr_environment_variable_get()
apachesolr_access_apachesolr_index_document_build_node in apachesolr_access/apachesolr_access.module
Implements hook_apachesolr_index_document_build_node()
apachesolr_clear_last_index_position in ./apachesolr.module
Clear a specific environment, or clear all.
apachesolr_cron in ./apachesolr.module
Implements hook_cron(). Runs the indexing process on all writable environments or just a given environment.
apachesolr_do_query in ./apachesolr.module
Execute a keyword search based on a query object.
apachesolr_get_last_index_position in ./apachesolr.module
Returns last changed and last ID for an environment and entity type.

... See full list

File

./apachesolr.module, line 1398
Integration with the Apache Solr search application.

Code

function apachesolr_environment_variable_get($env_id, $name, $default = NULL) {
  $environment = apachesolr_environment_load($env_id);
  if (isset($environment['conf'][$name])) {
    return $environment['conf'][$name];
  }
  return $default;
}