function taxonomy_feeds_summary_callback in Feeds 8.2
Same name and namespace in other branches
- 7.2 mappers/taxonomy.inc \taxonomy_feeds_summary_callback()
Mapping configuration summary for taxonomy.module.
Parameters
array $mapping: Associative array of the mapping settings.
array $target: Array of target settings, as defined by the processor or hook_feeds_processor_targets_alter().
array $form: The whole mapping form.
array $form_state: The form state of the mapping form.
Return value
string Returns, as a string that may contain HTML, the summary to display while the full form isn't visible. If the return value is empty, no summary and no option to view the form will be displayed.
1 string reference to 'taxonomy_feeds_summary_callback'
- taxonomy_feeds_processor_targets_alter in mappers/
taxonomy.inc - Implements hook_feeds_processor_targets_alter().
File
- mappers/
taxonomy.inc, line 227 - On behalf implementation of Feeds mapping API for taxonomy.module.
Code
function taxonomy_feeds_summary_callback($mapping, $target, $form, $form_state) {
$options = _taxonomy_feeds_form_callback_options();
if (empty($mapping['term_search'])) {
return t('Search taxonomy terms by: <strong>@search</strong>', array(
'@search' => $options[FEEDS_TAXONOMY_SEARCH_TERM_NAME],
));
}
return t('Search taxonomy terms by: <strong>@search</strong>', array(
'@search' => $options[$mapping['term_search']],
));
}