You are here

function apachesolr_enable in Apache Solr Search 7

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

Implements hook_enable().

File

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

Code

function apachesolr_enable() {

  // Completely build the index table.
  module_load_include('inc', 'apachesolr', 'apachesolr.index');
  $env_id = apachesolr_default_environment();
  apachesolr_index_mark_for_reindex($env_id);
}