123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- function i18n_install() {
-
- db_query("UPDATE {system} SET weight = 10 WHERE name = 'i18n' AND type = 'module'");
- }
- function i18n_uninstall() {
- variable_del('i18n_drupal6_update');
- }
- function i18n_install_create_fields($table, $fields, $force_rebuild_schema = FALSE) {
- static $schema;
- $rebuild_schema = !isset($schema) || $force_rebuild_schema;
- $schema = drupal_get_schema($table, $rebuild_schema);
- foreach ($fields as $field) {
- if (!empty($schema['fields'][$field])) {
- if (!db_field_exists($table, $field)) {
- db_add_field($table, $field, $schema['fields'][$field]);
- }
- else {
-
- db_change_field($table, $field, $field, $schema['fields'][$field]);
- }
- }
- }
- }
- function i18n_update_7000() {
- variable_set('i18n_drupal6_update', TRUE);
- variable_del('i18n_selection_mode');
- }
- function i18n_update_7001() {
- drupal_flush_all_caches();
- }
|