Skip to content
Snippets Groups Projects
Commit 6dd3740f authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1905870 by Berdir, Eric_A: Make feeds/feed items multilingual.

parent b3cb5c86
No related branches found
No related tags found
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
......@@ -319,6 +319,7 @@ function aggregator_update_8001() {
'length' => 12,
'not null' => TRUE,
'default' => '',
'initial' => LANGUAGE_DEFAULT,
));
db_add_field('aggregator_item', 'langcode', array(
'description' => 'The {language}.langcode of this feed item.',
......@@ -326,12 +327,6 @@ function aggregator_update_8001() {
'length' => 12,
'not null' => TRUE,
'default' => '',
'initial' => LANGUAGE_DEFAULT,
));
// Set langcode to LANGUAGE_DEFAULT.
db_update('aggregator_feed')
->fields(array('langcode' => LANGUAGE_DEFAULT))
->execute();
db_update('aggregator_item')
->fields(array('langcode' => LANGUAGE_DEFAULT))
->execute();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment