You are here

function path_feeds_summary_callback in Feeds 8.2

Same name and namespace in other branches
  1. 7.2 mappers/path.inc \path_feeds_summary_callback()

Mapping configuration summary for path.module.

Parameters

$mapping: Associative array of the mapping settings.

$target: Array of target settings, as defined by the processor or hook_feeds_processor_targets_alter().

$form: The whole mapping form.

$form_state: The form state of the mapping form.

Return value

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 'path_feeds_summary_callback'
path_feeds_processor_targets_alter in mappers/path.inc
Implements hook_feeds_processor_targets_alter().

File

mappers/path.inc, line 87
On behalf implementation of Feeds mapping API for path.module.

Code

function path_feeds_summary_callback($mapping, $target, $form, $form_state) {
  if (!module_exists('pathauto')) {
    return;
  }
  if (empty($mapping['pathauto_override'])) {
    return t('Do not allow Pathauto if empty.');
  }
  else {
    return t('Allow Pathauto if empty.');
  }
}