Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #9 from pantheon-systems/pantheon_apachesolr_searc…

…hapi_class

Support for new connection class name as per Drupal.org issue #1407282.
  • Loading branch information...
commit 610c8541400cc7d3168d98a3b7b2ffa00b49c489 2 parents d7d1816 + a936b4b
Matt Cheney populist authored
9 modules/pantheon/pantheon_apachesolr/pantheon_apachesolr.install
View
@@ -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');
+}
Please sign in to comment.
Something went wrong with that request. Please try again.