function apachesolr_environment_variable_get in Apache Solr Search 6.3
Same name and namespace in other branches
- 8 apachesolr.module \apachesolr_environment_variable_get()
- 7 apachesolr.module \apachesolr_environment_variable_get()
Get a named variable, or return the default.
See also
21 calls to apachesolr_environment_variable_get()
- 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. @todo See if we can add info to the content type array for the cron_check
- 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.
- apachesolr_get_last_index_updated in ./
apachesolr.module - Get the timestamp of the last index update.
File
- ./
apachesolr.module, line 1427 - 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;
}