content_planner.install in Content Planner 8
Contains module install and uninstall functionality.
File
content_planner.installView source
<?php
/**
* @file
* Contains module install and uninstall functionality.
*/
/**
* Implements hook_install().
*/
function content_planner_install() {
\Drupal::service('module_installer')
->install([
'content_kanban',
'content_calendar',
]);
\Drupal::service("router.builder")
->rebuild();
}
/**
* Implements hook_uninstall().
*/
function content_planner_uninstall() {
\Drupal::configFactory()
->getEditable('image.style.content_planner_user_block_profile_image')
->delete();
}
Functions
Name | Description |
---|---|
content_planner_install | Implements hook_install(). |
content_planner_uninstall | Implements hook_uninstall(). |