function text_feeds_summary_callback in Feeds 7.2
Summary callback for text field targets.
Displays which text format will be used for the text field target.
See also
text_feeds_processor_targets()
2 string references to 'text_feeds_summary_callback'
- FeedsTermProcessor::getMappingTargets in plugins/
FeedsTermProcessor.inc - Return available mapping targets.
- text_feeds_processor_targets in mappers/
text.inc - Implements hook_feeds_processor_targets().
File
- mappers/
text.inc, line 97 - On behalf implementation of Feeds mapping API for text.module.
Code
function text_feeds_summary_callback(array $mapping, $target, array $form, array $form_state) {
global $user;
$formats = filter_formats($user);
// Processor-wide input format setting.
$importer = feeds_importer($form['#importer']);
$default_format = !empty($importer->processor->config['input_format']) ? $importer->processor->config['input_format'] : filter_fallback_format();
$mapping += array(
'format' => $default_format,
);
return t('Text format: %format', array(
'%format' => $formats[$mapping['format']]->name,
));
}