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

8.0.x
webchick 2013-02-27 21:51:45 -05:00
parent b3cb5c866b
commit 6dd3740f0e
1 changed files with 2 additions and 7 deletions

View File

@ -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();
}