Skip to content
Snippets Groups Projects
Commit 09ae0ce9 authored by axel.rutz's avatar axel.rutz Committed by Chris Leppanen
Browse files

Revert term specific forced updating.

parent e605159c
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
}
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