Permalink
Browse files

Support for new connection class name as per Drupal.org issue #1407282.

  • Loading branch information...
1 parent 17a4201 commit b60bcee6de8919fc60a767864d8146efcc3c2db4 @populist populist committed with sdboyer Jul 22, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 modules/pantheon/pantheon_apachesolr/pantheon_apachesolr.install
@@ -6,7 +6,7 @@
function pantheon_apachesolr_install() {
// Make our Class(es) active.
variable_set('apachesolr_service_class', 'PantheonApacheSolrService');
- variable_set('search_api_solr_service_class', 'PantheonSearchApiSolrService');
+ variable_set('search_api_solr_connection_class', 'PantheonSearchApiSolrService');
}
function pantheon_apachesolr_enable() {
@@ -20,3 +20,10 @@ function pantheon_apachesolr_disable() {
// restore stock solrserviceclass
variable_del('apachesolr_service_class');
}
+
+/**
+ * Update the Search API Solr Connection Class Variable for Pantheon Compatibility
+ */
+function pantheon_apachesolr_update_7001(&$sandbox) {
+ variable_set('search_api_solr_connection_class', 'PantheonSearchApiSolrService');
+}

0 comments on commit b60bcee

Please sign in to comment.