function file_feeds_summary_callback in Feeds 7.2
Mapping configuration summary callback for file targets.
1 string reference to 'file_feeds_summary_callback'
- file_feeds_processor_targets in mappers/
file.inc - Implements hook_feeds_processor_targets().
File
- mappers/
file.inc, line 207 - On behalf implementation of Feeds mapping API for file.module and image.module.
Code
function file_feeds_summary_callback($mapping, $target, $form, $form_state) {
$mapping += array(
'file_exists' => FILE_EXISTS_RENAME,
);
switch ($mapping['file_exists']) {
case FILE_EXISTS_REPLACE:
return t('Replace existing files');
case FILE_EXISTS_RENAME:
return t('Rename if file exists');
case FEEDS_FILE_EXISTS_REPLACE_DIFFERENT:
return t('Replace only if file exists, but is different');
case FEEDS_FILE_EXISTS_RENAME_DIFFERENT:
return t('Rename only if file exists, but is different');
case FEEDS_FILE_EXISTS_SKIP:
return t('Skip if file exists');
}
}