From 09ae0ce9f8ed871ba01061b518464ced6a0964eb Mon Sep 17 00:00:00 2001 From: "axel.rutz" <axel.rutz@229048.no-reply.drupal.org> Date: Tue, 25 Sep 2012 13:42:30 -0700 Subject: [PATCH] Revert term specific forced updating. --- plugins/FeedsTermProcessor.inc | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/plugins/FeedsTermProcessor.inc b/plugins/FeedsTermProcessor.inc index 48ee6e59..bea56e2c 100644 --- a/plugins/FeedsTermProcessor.inc +++ b/plugins/FeedsTermProcessor.inc @@ -85,7 +85,6 @@ class FeedsTermProcessor extends FeedsProcessor { public function configDefaults() { return array( 'vocabulary' => 0, - 'force_update' => TRUE, ) + parent::configDefaults(); } @@ -105,12 +104,6 @@ class FeedsTermProcessor extends FeedsProcessor { '#options' => $options, '#default_value' => $this->config['vocabulary'], ); - $form['force_update'] = array( - '#type' => 'checkbox', - '#title' => t('Force update'), - '#description' => t('Force update of imported terms even if no data change. For import of <strong>term parents</strong> you need to import twice and set this in the second pass.'), - '#default_value' => $this->config['force_update'], - ); return $form; } @@ -253,18 +246,4 @@ class FeedsTermProcessor extends FeedsProcessor { } throw new Exception(t('No vocabulary defined for Taxonomy Term processor.')); } - - /** - * Override getHash() - * - * @return string - */ - protected function getHash($entity_id) { - if ($this->config['force_update']) { - return ''; // dummy to always update - } - else { - return parent::getHash($entity_id); - } - } } -- GitLab