function update_already_performed
Same name in other branches
- 7.x includes/update.inc \update_already_performed()
- 9 core/includes/update.inc \update_already_performed()
- 8.9.x core/includes/update.inc \update_already_performed()
- 11.x core/includes/update.inc \update_already_performed()
Determines if a module update has already been performed.
Parameters
$module: The name of the module.
$number: The number of the update within that module.
Return value
bool TRUE if the database schema indicates that the update has already been performed; FALSE otherwise.
1 call to update_already_performed()
- update_resolve_dependencies in core/
includes/ update.inc - Resolves dependencies in a set of module updates, and orders them correctly.
File
-
core/
includes/ update.inc, line 615
Code
function update_already_performed($module, $number) {
return $number <= \Drupal::service('update.update_hook_registry')->getInstalledVersion($module);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.