drupal_set_installed_schema_version

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 – drupal7 drupal_set_installed_schema_version($module, $version)

Update the installed version information for a module.

Übergabeparameter

$module A module name.

$version The new schema version.

▾ 5 functions call drupal_set_installed_schema_version()

drupal_uninstall_module in includes/install.inc
Calls the uninstall function and updates the system table for a given module.
system_update_6029 in modules/system/system.install
Enable the dblog module on sites that upgrade, since otherwise watchdog logging will stop unexpectedly.
update_batch in ./update.php
update_do_one in ./update.php
Perform one update and store the results which will later be displayed on the finished page.
_drupal_install_module in includes/install.inc
Callback to install an individual profile module.

Code

includes/install.inc, line 98

<?php
function drupal_set_installed_schema_version($module, $version) {
  db_query("UPDATE {system} SET schema_version = %d WHERE name = '%s'", $version, $module);
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen