You are here

function apachesolr_environment_conf_state_variables in Apache Solr Search 7

Returns a list of key names for environment variables indicating state instead of configuration, e.g. `apachesolr_index_last`, `apachesolr_index_updated`, and `apachesolr_last_optimize`.

2 calls to apachesolr_environment_conf_state_variables()
apachesolr_ctools_environment_export in ./apachesolr.module
Callback for exporting Apache Solr environments as CTools exportables.
apachesolr_environment_conf_equals in ./apachesolr.module
Determines whether two configuration arrays contain the same keys and values.

File

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

Code

function apachesolr_environment_conf_state_variables() {
  $keys =& drupal_static(__FUNCTION__);
  if (!isset($keys)) {
    $_keys = array(
      'apachesolr_index_last',
      'apachesolr_index_updated',
      'apachesolr_last_optimize_attempt',
      'apachesolr_last_optimize_success',
    );

    // Use array_combine() to make it easier to use in array_diff_key().
    // @see apachesolr_environment_conf_equals()
    $keys = array_combine($_keys, $_keys);
  }
  return $keys;
}