You are here

function feeds_ui_mapping_settings_optional_unique_summary in Feeds 8.2

Same name and namespace in other branches
  1. 7.2 feeds_ui/feeds_ui.admin.inc \feeds_ui_mapping_settings_optional_unique_summary()

Per mapping settings summary callback. Shows whether a mapping is used as unique or not.

1 call to feeds_ui_mapping_settings_optional_unique_summary()
feeds_ui_mapping_settings_form in feeds_ui/feeds_ui.admin.inc
Per mapper configuration form that is a part of feeds_ui_mapping_form().

File

feeds_ui/feeds_ui.admin.inc, line 804
Contains all page callbacks, forms and theming functions for Feeds administrative pages.

Code

function feeds_ui_mapping_settings_optional_unique_summary($mapping, $target, $form, $form_state) {
  if (!empty($target['optional_unique'])) {
    if ($mapping['unique']) {
      return t('Used as <strong>unique</strong>.');
    }
    else {
      return t('Not used as unique.');
    }
  }
}