You are here

function icon_field_feeds_summary_callback in Icon API 8

Same name and namespace in other branches
  1. 7 modules/icon_field/icon_field.feeds.inc \icon_field_feeds_summary_callback()

Callback to return the settings for the icon mapping.

1 string reference to 'icon_field_feeds_summary_callback'
icon_field_feeds_processor_targets_alter in modules/icon_field/icon_field.feeds.inc
Implements hook_feeds_processor_targets_alter().

File

modules/icon_field/icon_field.feeds.inc, line 29
icon_field.feeds.inc Feeds mapping implementation for the Icon Field module.

Code

function icon_field_feeds_summary_callback($mapping, $target, $form, $form_state) {
  $options = _icon_field_get_bundle_options();
  if (empty($mapping['icon_bundle'])) {
    return t('Create icons in bundle: <strong>@bundle</strong>', array(
      '@bundle' => $options['lullacons_pack1'],
    ));
  }
  return t('Create icons in bundle: <strong>@bundle</strong>', array(
    '@bundle' => $options[$mapping['icon_bundle']],
  ));
}