summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-06-24 21:26:48 +0000
committerDries Buytaert <dries@buytaert.net>2008-06-24 21:26:48 +0000
commit45ef7ac58121b6f80334daa3499299531c1bf067 (patch)
tree38bee6aa9dd4dd97387e5c4d642afc9f97722033 /profiles
parentd2b5e54efa5eda80ea210ae7454aea2a4d88d766 (diff)
downloadbrdo-45ef7ac58121b6f80334daa3499299531c1bf067.tar.gz
brdo-45ef7ac58121b6f80334daa3499299531c1bf067.tar.bz2
- Patch #261869 by catch, keith.smith: fixed default install profile / forum tests.
Diffstat (limited to 'profiles')
-rw-r--r--profiles/default/default.profile11
1 files changed, 6 insertions, 5 deletions
diff --git a/profiles/default/default.profile b/profiles/default/default.profile
index 706061e1a..c8536f941 100644
--- a/profiles/default/default.profile
+++ b/profiles/default/default.profile
@@ -133,11 +133,12 @@ function default_profile_tasks(&$task, $url) {
$theme_settings['toggle_node_info_page'] = FALSE;
variable_set('theme_settings', $theme_settings);
- // Create a default tags vocabulary for articles.
- $description = st('Tags are used to group your articles into different categories.');
- $help = st('Enter a comma separated list of words.');
- db_query("INSERT INTO {vocabulary} VALUES (1, 'Tags', '%s', '%s', 0, 0, 0, 0, 1, 'taxonomy', 0);", $description, $help);
- db_query("INSERT INTO {vocabulary_node_types} VALUES (1, 'article');");
+ // Create a default vocabulary named "Tags", enabled for the 'article' content type.
+ $description = st('Use tags to group articles on similar topics into categories.');
+ $help = st('Enter a comma-separated list of words.');
+ db_query("INSERT INTO {vocabulary} VALUES (NULL, 'Tags', '%s', '%s', 0, 0, 0, 0, 1, 'taxonomy', 0)", $description, $help);
+ $vid = db_last_insert_id('vocabulary', 'vid');
+ db_query("INSERT INTO {vocabulary_node_types} VALUES (%d, 'article')", $vid);
// Update the menu router information.
menu_rebuild();