You are here

function feeds_para_mapper_summary_callback in Feeds Paragraphs 7

Summary callback for paragraph field targets.

Displays the settings summary.

Parameters

array $mapping: Information about the target field and the target paragraph.

array $target: The target field information.

array $form: Contains the form elements for the mapping.

array $form_state: Information about the current form state.

Return value

string The summary text.

See also

feeds_para_mapper_feeds_processor_targets()

feeds_para_mapper_form_callback()

1 string reference to 'feeds_para_mapper_summary_callback'
feeds_para_mapper_feeds_processor_targets in ./feeds_para_mapper.module
Implements hook_feeds_processor_targets().

File

./feeds_para_mapper.module, line 378
Allows feeds to import content to Paragraphs' fields.

Code

function feeds_para_mapper_summary_callback(array $mapping, array $target, array $form, array $form_state) {
  $res = feeds_para_mapper_get_max_values($target['machine_name'], $mapping);
  return t('Maximum values: @res', array(
    "@res" => $res,
  ));
}