diff --git a/CHANGELOG.txt b/CHANGELOG.txt index d0fe4166d01377ccc6a2e87d8a6b7c791c3448ac..fd7c307eeb7330ccecae6c5c6ca5b66a8fc8a193 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -3,6 +3,7 @@ Feeds 6.x 1.0 xxxx, 200x-xx-xx ------------------------------ +- #649552 rsoden: Provide variable for data table name. - #631962 velosol, alex_b: FeedsNodeProcessor: Update when changed. - #623452 mongolito404: Port basic test infrastructure for mappers, test for basic CCK mapper. diff --git a/README.txt b/README.txt index 1812a1ad864f93305d62c5c1a33f89464d8b8b42..8e04c5e5c4289b60c3a30a286d25ee0d7ac905ad 100644 --- a/README.txt +++ b/README.txt @@ -117,10 +117,17 @@ Description: The number of feeds to import on cron time. Name: feeds_schedule_queue_num Default: 200 - The number of feeds to queue on cron time. Only has an effect if +Description: The number of feeds to queue on cron time. Only has an effect if Drupal Queue is enabled. http://drupal.org/project/drupal_queue +Name: feeds_data_$importer_id +Default: feeds_data_$importer_id +Description: The table used by FeedsDataProcessor to store feed items. Usually a + FeedsDataProcessor builds a table name from a prefix (feeds_data_) + and the importer's id ($importer_id). This default table name can + be overridden by defining a variable with the same name. + Glossary ======== diff --git a/plugins/FeedsDataProcessor.inc b/plugins/FeedsDataProcessor.inc index e70d332852748538f16e8b1e51c4372ee18822d3..ac7c3d7faafe4528d0ba39ef96e2f7408e47e493 100644 --- a/plugins/FeedsDataProcessor.inc +++ b/plugins/FeedsDataProcessor.inc @@ -269,7 +269,7 @@ class FeedsDataProcessor extends FeedsProcessor { * Return the data table name for this feed. */ protected function tableName() { - return 'feeds_data_'. $this->id; + return variable_get('feeds_data_'. $this->id, 'feeds_data_'. $this->id); } /**