Same name and namespace in other branches
- 6.x developer/hooks/install.php \hook_update_last_removed()
- 7.x modules/system/system.api.php \hook_update_last_removed()
- 8.9.x core/lib/Drupal/Core/Extension/module.api.php \hook_update_last_removed()
- 9 core/lib/Drupal/Core/Extension/module.api.php \hook_update_last_removed()
Return a number which is no longer available as hook_update_N().
If you remove some update functions from your my_module.install file, you should notify Drupal of those missing functions. This way, Drupal can ensure that no update is accidentally skipped.
Implementations of this hook should be placed in a my_module.install file in the same directory as my_module.module.
Return value
int An integer, corresponding to hook_update_N() which has been removed from my_module.install.
See also
Related topics
34 functions implement hook_update_last_removed()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- block_content_update_last_removed in core/
modules/ block_content/ block_content.install - Implements hook_update_last_removed().
- block_update_last_removed in core/
modules/ block/ block.install - Implements hook_update_last_removed().
- comment_update_last_removed in core/
modules/ comment/ comment.install - Implements hook_update_last_removed().
- content_moderation_update_last_removed in core/
modules/ content_moderation/ content_moderation.install - Implements hook_update_last_removed().
- content_translation_update_last_removed in core/
modules/ content_translation/ content_translation.install - Implements hook_update_last_removed().
1 invocation of hook_update_last_removed()
- _update_fix_missing_schema in core/
includes/ update.inc - Helper to detect and fix 'missing' schema information.
File
- core/
lib/ Drupal/ Core/ Extension/ module.api.php, line 904 - Hooks related to module and update systems.
Code
function hook_update_last_removed() {
// We've removed the 8.x-1.x version of my_module, including database updates.
// The next update function is my_module_update_8200().
return 8103;
}