diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-06-19 06:28:45 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-06-19 06:28:45 +0000 |
commit | 9ed614595cf03113db4381c658248949482362db (patch) | |
tree | 0e8eb512e572641d229768d8db1f15c20d519f74 /modules/forum/forum.install | |
parent | 7fb7b3462cc242de8aa406a4d962bf647dc20ffd (diff) | |
download | brdo-9ed614595cf03113db4381c658248949482362db.tar.gz brdo-9ed614595cf03113db4381c658248949482362db.tar.bz2 |
- Patch #394116 by Berdir, jcfiala: converted forum module to new database abstraction layer.
Diffstat (limited to 'modules/forum/forum.install')
-rw-r--r-- | modules/forum/forum.install | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/forum/forum.install b/modules/forum/forum.install index eb8d36a11..02d64fe7a 100644 --- a/modules/forum/forum.install +++ b/modules/forum/forum.install @@ -13,7 +13,10 @@ function forum_install() { // Create tables. drupal_install_schema('forum'); // Set the weight of the forum.module to 1 so it is loaded after the taxonomy.module. - db_query("UPDATE {system} SET weight = 1 WHERE name = 'forum'"); + db_update('system') + ->fields(array('weight' => 1)) + ->condition('name', 'forum') + ->execute(); } function forum_enable() { @@ -55,7 +58,7 @@ function forum_uninstall() { $vid = variable_get('forum_nav_vocabulary', 0); taxonomy_vocabulary_delete($vid); - db_query('DROP TABLE {forum}'); + drupal_uninstall_schema('forum'); variable_del('forum_containers'); variable_del('forum_nav_vocabulary'); variable_del('forum_hot_topic'); |