jsonlog.install in JSONlog 8
Same filename and directory in other branches
Install, update and uninstall functions for the jsonlog module.
File
jsonlog.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the jsonlog module.
*/
/**
* Implements hook_install().
*/
function jsonlog_install() {
\Drupal::configFactory()
->getEditable('jsonlog.settings')
->save(true);
}
/**
* Implements hook_uninstall().
*/
function jsonlog_uninstall() {
\Drupal::configFactory()
->getEditable('jsonlog.settings')
->delete();
}
Functions
Name | Description |
---|---|
jsonlog_install | Implements hook_install(). |
jsonlog_uninstall | Implements hook_uninstall(). |