Multiple content type selection working
This commit is contained in:
18
archive_tree.install
Normal file
18
archive_tree.install
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user