summaryrefslogtreecommitdiff
path: root/modules/forum/forum.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-06-22 13:21:38 +0000
committerDries Buytaert <dries@buytaert.net>2009-06-22 13:21:38 +0000
commitfabaaaaa6e065b1f8f89c00b31b947fa7861d13c (patch)
treec9cb0fdb1b99300edeb7b943ffb8eb9bbab7d759 /modules/forum/forum.install
parentf96c141f5aa99ed414eba4e0a520e5b4d9f91b76 (diff)
downloadbrdo-fabaaaaa6e065b1f8f89c00b31b947fa7861d13c.tar.gz
brdo-fabaaaaa6e065b1f8f89c00b31b947fa7861d13c.tar.bz2
- Patch #278592 by catch, Dave Reid, lilou et al: remove D5 to D6 updates.
Diffstat (limited to 'modules/forum/forum.install')
-rw-r--r--modules/forum/forum.install30
1 files changed, 0 insertions, 30 deletions
diff --git a/modules/forum/forum.install b/modules/forum/forum.install
index 02d64fe7a..ddbe719fd 100644
--- a/modules/forum/forum.install
+++ b/modules/forum/forum.install
@@ -110,33 +110,3 @@ function forum_schema() {
return $schema;
}
-
-/**
- * Create the forum vocabulary if does not exist. Assign the
- * vocabulary a low weight so it will appear first in forum topic
- * create and edit forms. Do not just call forum_enable() because in
- * future versions it might do something different.
- */
-function forum_update_6000() {
- $ret = array();
-
- $vid = variable_get('forum_nav_vocabulary', 0);
- $vocabularies = taxonomy_get_vocabularies();
- if (!isset($vocabularies[$vid])) {
- $vocabulary = array(
- 'name' => t('Forums'),
- 'multiple' => 0,
- 'required' => 0,
- 'hierarchy' => 1,
- 'relations' => 0,
- 'module' => 'forum',
- 'weight' => -10,
- 'nodes' => array('forum' => 1),
- );
- taxonomy_save_vocabulary($vocabulary);
-
- variable_set('forum_nav_vocabulary', $vocabulary['vid']);
- }
-
- return $ret;
-}