You are here

function apachesolr_index_env_is_readonly in Apache Solr Search 7

Determine if an environment is in read-only mode.

Parameters

string $env_id: An apachesolr environment id.

Return value

bool TRUE if the environment is read-only.

5 calls to apachesolr_index_env_is_readonly()
apachesolr_index_delete_bundles in ./apachesolr.index.inc
Delete from the index documents with the entity type and any of the excluded bundles.
apachesolr_index_delete_entity_from_index in ./apachesolr.index.inc
Delete an entity from the index.
apachesolr_index_delete_index in ./apachesolr.index.inc
Delete the whole index for an environment.
apachesolr_index_nodeapi_mass_delete in ./apachesolr.index.inc
Mass delete nodes from the solr indexer tables. TODO: This always assumes the default environment!
apachesolr_index_nodeapi_mass_update in ./apachesolr.index.inc
Mass Update nodes from the solr indexer table TODO: This always assumes the default environment!

File

./apachesolr.index.inc, line 1568
Functions related to Apache Solr indexing operations.

Code

function apachesolr_index_env_is_readonly($env_id) {
  return apachesolr_environment_variable_get($env_id, 'apachesolr_read_only', APACHESOLR_READ_WRITE) == APACHESOLR_READ_ONLY;
}