You are here

function apachesolr_ctools_environment_delete in Apache Solr Search 8

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

Callback for reverting Apache Solr environment CTools exportables.

Parameters

mixed $env_id: An environment machine name. CTools may provide an id OR a complete environment object; Since Apache Solr loads environments as arrays, this may also be an environment array.

1 string reference to 'apachesolr_ctools_environment_delete'
apachesolr_schema in ./apachesolr.install
Implements hook_schema().

File

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

Code

function apachesolr_ctools_environment_delete($env_id) {
  if (is_object($env_id) || is_array($env_id)) {
    $env_id = (object) $env_id;
    $env_id = $env_id->env_id;
  }
  apachesolr_environment_delete($env_id);
}