You are here

function path_feeds_form_callback in Feeds 8.2

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

Settings form callback.

Return value

The per mapping configuration form. Once the form is saved, $mapping will be populated with the form values.

1 string reference to 'path_feeds_form_callback'
path_feeds_processor_targets_alter in mappers/path.inc
Implements hook_feeds_processor_targets_alter().

File

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

Code

function path_feeds_form_callback($mapping, $target, $form, $form_state) {
  return array(
    'pathauto_override' => array(
      '#type' => 'checkbox',
      '#title' => t('Allow Pathauto to set the alias if the value is empty.'),
      '#default_value' => !empty($mapping['pathauto_override']),
    ),
  );
}