You are here

function path_feeds_processor_targets_alter in Feeds 8.2

Implements hook_feeds_processor_targets_alter().

See also

FeedsNodeProcessor::getMappingTargets()

File

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

Code

function path_feeds_processor_targets_alter(&$targets, $entity_type, $bundle_name) {
  switch ($entity_type) {
    case 'node':
    case 'taxonomy_term':
    case 'user':
      $targets['path_alias'] = array(
        'name' => t('Path alias'),
        'description' => t('URL path alias of the node.'),
        'callback' => 'path_feeds_set_target',
        'summary_callback' => 'path_feeds_summary_callback',
        'form_callback' => 'path_feeds_form_callback',
      );
      break;
  }
}