You are here

jsonlog.install in JSONlog 3.x

Install, update and uninstall functions for the jsonlog module.

File

jsonlog.install
View 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

Namesort descending Description
jsonlog_install Implements hook_install().
jsonlog_uninstall Implements hook_uninstall().