function apachesolr_environment_save_to_database in Apache Solr Search 7
Makes sure that the given environment has been saved to the database.
This is a required step before any environment-related data is modified or deleted. It ensures that ctools exportables can properly determine whether something has been overridden.
Parameters
string $env_id: The environment ID.
See also
https://www.drupal.org/node/1439564#comment-8727467
2 calls to apachesolr_environment_save_to_database()
- apachesolr_environment_variable_del in ./
apachesolr.module - Get a named variable, or return the default.
- apachesolr_environment_variable_set in ./
apachesolr.module - Set a named variable, or return the default.
File
- ./
apachesolr.module, line 1465 - Integration with the Apache Solr search application.
Code
function apachesolr_environment_save_to_database($env_id) {
$environment = apachesolr_environment_load($env_id);
if (!empty($environment['in_code_only'])) {
apachesolr_environment_save($environment);
}
}