You are here

public function FeedsRulesProcessor::getMappingTargets in Feeds Rules 7

File

plugins/FeedsRulesProcessor.inc, line 233
Defines the Feeds Rules processor plugin.

Class

FeedsRulesProcessor
Feeds processor plugin to process a rules component for each feed items.

Code

public function getMappingTargets() {
  $action = rules_get_cache('comp_' . $this->config['component']);
  $parameter_info = $action
    ->parameterInfo();
  $targets = array();
  foreach ($parameter_info as $key => $info) {
    $targets[$key] = array(
      'name' => $info['label'],
      'description' => t('Rules data of type @type.', array(
        '@type' => $info['type'],
      )),
    );
  }

  // @TODO: Let other modules expose mapping targets, after we defined a pseudo
  // entity that represents execution of a rule execution.

  //self::loadMappers();

  //feeds_alter('feeds_processor_targets', $targets, 'rules_action', $this->config['content_type']);
  return $targets;
}