You are here

function apachesolr_ctools_environment_save in Apache Solr Search 7

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

Callback for saving Apache Solr environment CTools exportables.

CTools uses objects, while Apache Solr uses arrays; turn CTools value into an array, then call the normal save function.

Parameters

stdclass $environment: An environment object.

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

File

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

Code

function apachesolr_ctools_environment_save($environment) {
  apachesolr_environment_save((array) $environment);
}