drupal_set_installed_schema_version

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

includes/install.inc, строка 90

Версии
5 – 6
drupal_set_installed_schema_version($module, $version)

Update the installed version information for a module.

Параметры

$module A module name.

$version The new schema version.

▾ 5 функции вызывают drupal_set_installed_schema_version()

drupal_install_modules in includes/install.inc
Вызывает функцию установки и обновляет таблицу system для указанного списка модулей.
drupal_uninstall_module in includes/install.inc
Calls the uninstall function and updates the system table for a given module.
update_data in ./update.php
Perform one update and store the results which will later be displayed on the finished page.
update_fix_schema_version in ./update.php
If the schema version for Drupal core is stored in the variables table (4.6.x and earlier) move it to the schema_version column of the system table.
update_update_page in ./update.php

Код

<?php
function drupal_set_installed_schema_version($module, $version) {
  db_query("UPDATE {system} SET schema_version = %d WHERE name = '%s'", $version, $module);
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему