function tvi_install in Taxonomy Views Integrator 8
Same name and namespace in other branches
- 6 tvi.install \tvi_install()
- 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);
}
}