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'],
)),
);
}
return $targets;
}