Skip to content
Snippets Groups Projects
Commit a429a6f0 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #261869 by catch: create default vocabulary for articles.

parent 928822d0
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -133,6 +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');");
// Update the menu router information.
menu_rebuild();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment