You are here

public function FarmAssetProcessor::getMappingTargets in farmOS 7

Return available mapping targets.

File

modules/farm/farm_asset/includes/feeds/plugins/FarmAssetProcessor.inc, line 219
Class definition of FarmAssetProcessor.

Class

FarmAssetProcessor
Creates farm assets from feed items.

Code

public function getMappingTargets() {
  $targets = parent::getMappingTargets();
  $targets['id'] = array(
    'name' => t('Asset ID'),
    'description' => t('The id of the asset. NOTE: use this feature with care, asset ids are usually assigned by Drupal.'),
    'optional_unique' => TRUE,
  );
  $targets['name'] = array(
    'name' => t('Name'),
    'description' => t('The name of the asset.'),
  );
  $targets['uid'] = array(
    'name' => t('Author user ID'),
    'description' => t('The user ID of the asset author.'),
  );
  $targets['user_name'] = array(
    'name' => t('Author username'),
    'description' => t('The username of the asset author.'),
  );
  $targets['user_mail'] = array(
    'name' => t('Author user email'),
    'description' => t('The email address of the asset author.'),
  );
  $targets['created'] = array(
    'name' => t('Created date'),
    'description' => t('The UNIX time when an asset has been published.'),
  );
  $targets['changed'] = array(
    'name' => t('Updated date'),
    'description' => t('The Unix timestamp when an asset has been last updated.'),
  );
  $targets['archived'] = array(
    'name' => t('archived'),
    'description' => t('The Unix timestamp when an asset was archived.'),
  );
  $this
    ->getHookTargets($targets);
  return $targets;
}