@@ -124,7 +131,7 @@ class FeedsTermProcessor extends FeedsProcessor {
publicfunctionconfigDefaults(){
returnarray(
'vocabulary'=>0,
'update_existing'=>0,
'update_existing'=>FEEDS_SKIP_EXISTING,
'mappings'=>array(),
);
}
...
...
@@ -145,11 +152,15 @@ class FeedsTermProcessor extends FeedsProcessor {
'#options'=>$options,
'#default_value'=>$this->config['vocabulary'],
);
// @todo Implement true updating.
$form['update_existing']=array(
'#type'=>'checkbox',
'#title'=>t('Replace existing terms'),
'#description'=>t('If an existing term is found for an imported term, replace it. Existing terms will be determined using mappings that are a "unique target".'),
'#type'=>'radios',
'#title'=>t('Update existing terms'),
'#description'=>t('Select how existing terms should be updated. Existing terms will be determined using mappings that are a "unique target".'),
'#options'=>array(
FEEDS_SKIP_EXISTING=>'Do not update existing terms',
FEEDS_REPLACE_EXISTING=>'Replace existing terms',
FEEDS_UPDATE_EXISTING=>'Update existing terms (slower than replacing them)',