diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-08-21 19:36:39 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-08-21 19:36:39 +0000 |
commit | 69e6f411a9ed5dcf3f71d4320218620d3444d295 (patch) | |
tree | f4d393bbda7d814c825878785221b65c73b225f8 /profiles | |
parent | 0e79597812ad0b6b72cf65bfc928c4a591d80ff1 (diff) | |
download | brdo-69e6f411a9ed5dcf3f71d4320218620d3444d295.tar.gz brdo-69e6f411a9ed5dcf3f71d4320218620d3444d295.tar.bz2 |
- Patch #225450 by Crell, chx, bjaspan, catch, swentel, recidive et al: next generation database layer for Drupal 7.
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/default/default.profile | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/profiles/default/default.profile b/profiles/default/default.profile index c8536f941..4d7d2e7eb 100644 --- a/profiles/default/default.profile +++ b/profiles/default/default.profile @@ -136,10 +136,21 @@ function default_profile_tasks(&$task, $url) { // 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); - + + $vid = db_insert('vocabulary')->fields(array( + 'name' => 'Tags', + 'description' => $description, + 'help' => $help, + 'relations' => 0, + 'hierarchy' => 0, + 'multiple' => 0, + 'required' => 0, + 'tags' => 1, + 'module' => 'taxonomy', + 'weight' => 0, + ))->execute(); + db_insert('vocabulary_node_types')->fields(array('vid' => $vid, 'type' => 'article'))->execute(); + // Update the menu router information. menu_rebuild(); } |