You are here

public function FeedsTermProcessor::getMappingTargets in Feeds 7.2

Same name and namespace in other branches
  1. 6 plugins/FeedsTermProcessor.inc \FeedsTermProcessor::getMappingTargets()
  2. 7 plugins/FeedsTermProcessor.inc \FeedsTermProcessor::getMappingTargets()

Return available mapping targets.

Overrides FeedsProcessor::getMappingTargets

File

plugins/FeedsTermProcessor.inc, line 183
FeedsTermProcessor class.

Class

FeedsTermProcessor
Feeds processor plugin. Create taxonomy terms from feed items.

Code

public function getMappingTargets() {
  $targets = parent::getMappingTargets();
  $targets += array(
    'name' => array(
      'name' => t('Term name'),
      'description' => t('Name of the taxonomy term.'),
      'optional_unique' => TRUE,
    ),
    'parent' => array(
      'name' => t('Parent: Term name'),
      'description' => t('The name of the parent taxonomy term.'),
      'optional_unique' => TRUE,
    ),
    'parentguid' => array(
      'name' => t('Parent: GUID'),
      'description' => t('The GUID of the parent taxonomy term.'),
      'optional_unique' => TRUE,
    ),
    'weight' => array(
      'name' => t('Term weight'),
      'description' => t('Weight of the taxonomy term.'),
      'optional_unique' => TRUE,
    ),
    'description' => array(
      'name' => t('Term description'),
      'description' => t('Description of the taxonomy term.'),
      'summary_callbacks' => array(
        'text_feeds_summary_callback',
      ),
      'form_callbacks' => array(
        'text_feeds_form_callback',
      ),
    ),
  );
  $this
    ->getHookTargets($targets);
  return $targets;
}