update_already_performed

update_already_performed($module, $number)

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.

File

core/includes/update.inc, line 583
Drupal database update API.

Code

function update_already_performed($module, $number) {
  return $number <= drupal_get_installed_schema_version($module);
}
doc_Drupal
2016-10-29 09:51:18
Comments
Leave a Comment

Please login to continue.