public function AssetFeedsProcessor::getMappingTargets in Asset 7
Return available mapping targets.
File
- modules/
asset_feeds/ AssetFeedsProcessor.inc, line 228 - Class definition of AssetFeedsProcessor.
Class
- AssetFeedsProcessor
- Creates assets from feed items.
Code
public function getMappingTargets() {
$targets = parent::getMappingTargets();
$targets['title'] = array(
'name' => t('Title'),
'description' => t('The title of the asset.'),
'optional_unique' => TRUE,
);
$targets['aid'] = array(
'name' => t('Asset ID'),
'description' => t('The aid of the asset. NOTE: use this feature with care, asset ids are usually assigned by Drupal.'),
'optional_unique' => TRUE,
);
$targets['uid'] = array(
'name' => t('User ID'),
'description' => t('The Drupal user ID of the asset author.'),
);
$targets['created'] = array(
'name' => t('Created date'),
'description' => t('The UNIX time when an asset has been created.'),
);
// Let other modules expose mapping targets.
self::loadMappers();
feeds_alter('feeds_processor_targets', $targets, 'asset', $this->config['asset_type']);
return $targets;
}