function hook_update_last_removed

Return a number which is no longer available as hook_update_N().

If you remove some update functions from your mymodule.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 mymodule.install file in the same directory as mymodule.module.

Return value

An integer, corresponding to hook_update_N() which has been removed from mymodule.install.

See also

hook_update_N()

Related topics

2 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.

forum_update_last_removed in drupal/core/modules/forum/forum.install
Implements hook_update_last_removed().
system_update_last_removed in drupal/core/modules/system/system.install
2 invocations of hook_update_last_removed()
ModuleHandler::enable in drupal/core/lib/Drupal/Core/Extension/ModuleHandler.php
Enables or installs a given list of modules.
update_get_update_list in drupal/core/includes/update.inc
Returns a list of all the pending database updates.

File

drupal/core/modules/system/system.api.php, line 2782
Hooks provided by Drupal core and the System module.

Code

function hook_update_last_removed() {

  // We've removed the 5.x-1.x version of mymodule, including database updates.
  // The next update function is mymodule_update_5200().
  return 5103;
}