update.install
Same filename in other branches
Install, update, and uninstall functions for the Update Status module.
File
-
core/
modules/ update/ update.install
View source
<?php
/**
* @file
* Install, update, and uninstall functions for the Update Status module.
*/
use Drupal\Core\Hook\Attribute\ProceduralHookScanStop;
/**
* Implements hook_install().
*/
function update_install() : void {
$queue = \Drupal::queue('update_fetch_tasks', TRUE);
$queue->createQueue();
}
/**
* Implements hook_uninstall().
*/
function update_uninstall() : void {
\Drupal::state()->delete('update.last_check');
\Drupal::state()->delete('update.last_email_notification');
$queue = \Drupal::queue('update_fetch_tasks');
$queue->deleteQueue();
}
/**
* Implements hook_update_last_removed().
*/
function update_update_last_removed() : int {
return 8001;
}
Functions
Title | Deprecated | Summary |
---|---|---|
update_install | Implements hook_install(). | |
update_uninstall | Implements hook_uninstall(). | |
update_update_last_removed | Implements hook_update_last_removed(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.