You are here

function update_already_performed in Drupal 7

Same name and namespace in other branches
  1. 8 core/includes/update.inc \update_already_performed()
  2. 9 core/includes/update.inc \update_already_performed()
  3. 10 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

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 includes/update.inc
Resolves dependencies in a set of module updates, and orders them correctly.

File

includes/update.inc, line 1419
Drupal database update API.

Code

function update_already_performed($module, $number) {
  return $number <= drupal_get_installed_schema_version($module);
}