You are here

function apachesolr_install in Apache Solr Search 6

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

Implementation of hook_install().

File

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

Code

function apachesolr_install() {

  // Create tables.
  drupal_install_schema('apachesolr');

  // Create one MLT block.
  require_once drupal_get_path('module', 'apachesolr') . '/apachesolr.admin.inc';
  apachesolr_mlt_save_block(array(
    'name' => t('More like this'),
  ));
  drupal_set_message(t('Search is enabled. Your site is <a href="!index_settings_link">currently 0% indexed</a>.', array(
    '!index_settings_link' => url('admin/settings/apachesolr/index'),
  )));
}