closeblock.install in Close Block 8
Same filename and directory in other branches
Install hooks for Closeblock.
File
closeblock.installView 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
Name | Description |
---|---|
closeblock_uninstall | Implements hook_uninstall(). |
closeblock_update_8001 | Renames close_block.settings to the closeblock.settings. |