single_page_site.install in Single Page Site 8
Same filename and directory in other branches
Install, update, and uninstall functions.
File
single_page_site.installView source
<?php
/**
* @file
* Install, update, and uninstall functions.
*/
/**
* Implements hook_uninstall().
*/
function single_page_site_uninstall() {
// Delete variables.
\Drupal::state()
->delete('single_page_site_settings');
}
/**
* Flush caches to pick up new services.
*/
function single_page_site_update_8101() {
// This hook already flushed caches, so we don't need to do anything.
}
Functions
Name | Description |
---|---|
single_page_site_uninstall | Implements hook_uninstall(). |
single_page_site_update_8101 | Flush caches to pick up new services. |