You are here

function opigno_search_install in Opigno Search 8

Same name and namespace in other branches
  1. 3.x opigno_search.install \opigno_search_install()

Implements hook_install().

Rebuild Index search after install module.

File

./opigno_search.install, line 15
Module install/update functionality.

Code

function opigno_search_install() {
  $index = Index::load('default_index');
  $index
    ->disable();
  $index
    ->save();
  $index
    ->enable();
  $index
    ->save();
}