You are here

function tvi_install in Taxonomy Views Integrator 8

Same name and namespace in other branches
  1. 6 tvi.install \tvi_install()
  2. 7 tvi.install \tvi_install()

Implements hook_install().

File

./tvi.install, line 11
Install, update, and uninstall functions for the tvi module.

Code

function tvi_install() {
  $extension_config = \Drupal::configFactory()
    ->getEditable('core.extension');
  if (($views_weight = $extension_config
    ->get("module.views")) !== NULL) {
    module_set_weight('tvi', $views_weight + 5);
  }
}