Files
drupal-module-archive-tree/archive_tree.install

19 lines
438 B
Plaintext

<?php
/**
* @file
* Install, update and uninstall hooks for the Archive Tree module.
*/
/**
* Implements hook_uninstall().
*/
function archive_tree_uninstall() {
// Remove the views provided by this module on uninstall.
$view_ids = ['archive_by_year', 'archive_by_month'];
foreach ($view_ids as $view_id) {
if ($view = \Drupal::entityTypeManager()->getStorage('view')->load($view_id)) {
$view->delete();
}
}
}