fancy_file_delete.install in Fancy File Delete 2.0.x
Same filename and directory in other branches
Install File for Fancy File Delete.
File
fancy_file_delete.installView source
<?php
/**
* @file
* Install File for Fancy File Delete.
*/
/**
* Implements hook_uninstall().
*/
function fancy_file_delete_uninstall() {
$schema = \Drupal::database()
->schema();
if ($schema
->tableExists('unmanaged_files')) {
$schema
->dropTable('unmanaged_files');
}
}
/**
* Implements hook_install().
*/
function fancy_file_delete_install() {
// So the views and actions are happy after install.
drupal_flush_all_caches();
}
/**
* 8001 - Reimports Config.
*/
function fancy_file_delete_update_8001() {
\Drupal::service('config.installer')
->installDefaultConfig('module', 'fancy_file_delete');
drupal_flush_all_caches();
}
Functions
Name | Description |
---|---|
fancy_file_delete_install | Implements hook_install(). |
fancy_file_delete_uninstall | Implements hook_uninstall(). |
fancy_file_delete_update_8001 | 8001 - Reimports Config. |