You are here

function feed_import_base_feed_import_field_merge_classes in Feed Import 8

Same name and namespace in other branches
  1. 7.3 feed_import_base/feed_import_base.module \feed_import_base_feed_import_field_merge_classes()

Implements hook_feed_import_field_merge_classes().

File

feed_import_base/feed_import_base.module, line 576
Basic settings for feed import base module

Code

function feed_import_base_feed_import_field_merge_classes() {
  return array(
    FeedImportProcessor::UPDATE_COMBINE => array(
      'title' => t('Merge field - no duplicates'),
      'description' => t('Tries to avoid updates by checking if field values already exists.'),
      'class' => 'Drupal\\feed_import_base\\FeedImportMergeNoDuplicates',
    ),
    FeedImportProcessor::UPDATE_MERGE => array(
      'title' => t('Merge field - allow duplicates'),
      'description' => t('Appends new values to field.'),
      'class' => 'Drupal\\feed_import_base\\FeedImportMergeDuplicates',
    ),
    FeedImportProcessor::UPDATE_OVERWRITE => array(
      'title' => t('Overwrite field'),
      'description' => t('Overwrites field values if are distinct. Field will be removed if there are no values.'),
      'class' => 'Drupal\\feed_import_base\\FeedImportMergeOverwrite',
    ),
    FeedImportProcessor::UPDATE_OVERWRITE_FAST => array(
      'title' => t('Fast overwrite field'),
      'description' => t('Always overwrites field values. Field will NOT be removed if there are no values.'),
      'class' => 'Drupal\\feed_import_base\\FeedImportMergeOverwriteFast',
    ),
  );
}