You are here

closeblock.install in Close Block 8

Same filename and directory in other branches
  1. 6 closeblock.install
  2. 7 closeblock.install

Install hooks for Closeblock.

File

closeblock.install
View source
<?php

/**
 * @file
 * Install hooks for Closeblock.
 */

/**
 * Implements hook_uninstall().
 */
function closeblock_uninstall() {
  \Drupal::configFactory()
    ->getEditable('closeblock.settings')
    ->delete();
  \Drupal::configFactory()
    ->getEditable('closeBlocksIdBlocksForClosing.settings')
    ->delete();
}

/**
 * Renames close_block.settings to the closeblock.settings.
 */
function closeblock_update_8001() {
  \Drupal::configFactory()
    ->rename('close_block.settings', 'closeblock.settings');
}

Functions

Namesort descending Description
closeblock_uninstall Implements hook_uninstall().
closeblock_update_8001 Renames close_block.settings to the closeblock.settings.