diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 6c88cd0963c6c45fe9509c3a2106f438de75e6c6..cd996250c87d6d844d628b824e5c43a6d351b8ab 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -3,6 +3,8 @@ Feeds 7.x 2.0 XXXXXXXXXXXXXXXXXXX --------------------------------- +- Remove check for present name in terms that are imported. If we do such + validation, we need to do this on a more pluggable level. - Fix Feeds News tests, add a 'description' field to the Feeds Item content type. - #728534 alex_b: Remove FeedsFeedNodeProcessor. If you have used diff --git a/plugins/FeedsTermProcessor.inc b/plugins/FeedsTermProcessor.inc index 584531d40e3e7487d24d7b272d6739556c7812fa..a63702eb97d44e9a707358af25faa76581fa4aeb 100644 --- a/plugins/FeedsTermProcessor.inc +++ b/plugins/FeedsTermProcessor.inc @@ -23,7 +23,7 @@ class FeedsTermProcessor extends FeedsProcessor { */ public function process(FeedsSource $source, FeedsParserResult $parser_result) { // Count number of created and updated nodes. - $created = $updated = $no_name = 0; + $created = $updated = 0; while ($item = $parser_result->shiftItem()) { if (!($tid = $this->existingItemId($source, $parser_result)) || $this->config['update_existing'] != FEEDS_SKIP_EXISTING) { @@ -37,12 +37,6 @@ class FeedsTermProcessor extends FeedsProcessor { } $term = $this->map($source, $parser_result, $term); - // Check if term name is set, otherwise continue. - if (empty($term->name)) { - $no_name++; - continue; - } - // Add term id if available. if (!empty($tid)) { $term->tid = $tid; @@ -63,17 +57,6 @@ class FeedsTermProcessor extends FeedsProcessor { // Set messages. $vocabulary = $this->vocabulary(); - if ($no_name) { - drupal_set_message( - format_plural( - $no_name, - 'There was @number term that could not be imported because their name was empty. Check mapping settings on Taxomy term processor.', - 'There were @number terms that could not be imported because their name was empty. Check mapping settings on Taxomy term processor.', - array('@number' => $no_name) - ), - 'error' - ); - } if ($created) { drupal_set_message(format_plural($created, 'Created @number term in !vocabulary.', 'Created @number terms in !vocabulary.', array('@number' => $created, '!vocabulary' => $vocabulary->name))); }