You are here

function apachesolr_enable in Apache Solr Search 6.3

Same name and namespace in other branches
  1. 8 apachesolr.install \apachesolr_enable()
  2. 5.2 apachesolr.install \apachesolr_enable()
  3. 6 apachesolr.install \apachesolr_enable()
  4. 6.2 apachesolr.install \apachesolr_enable()
  5. 7 apachesolr.install \apachesolr_enable()

Implements hook_enable().

1 call to apachesolr_enable()
apachesolr_update_6302 in ./apachesolr.install
This function cleans up the old apachesolr tables. There is no magic upgrade pat. The old facet and MLT blocks will be gone

File

./apachesolr.install, line 88
Install and related hooks for apachesolr_search.

Code

function apachesolr_enable() {
  module_load_include('inc', 'apachesolr', 'apachesolr.index');

  // Completely build the index table.
  $env_id = apachesolr_default_environment();
  apachesolr_index_mark_for_reindex($env_id);
}