You are here

public function LogProcessor::getMappingTargets in Log entity 7

Return available mapping targets.

File

includes/feeds/plugins/LogProcessor.inc, line 211
Class definition of LogProcessor.

Class

LogProcessor
Creates logs from feed items.

Code

public function getMappingTargets() {
  $targets = parent::getMappingTargets();
  $targets['id'] = array(
    'name' => t('Log ID'),
    'description' => t('The id of the log. NOTE: use this feature with care, log ids are usually assigned by Drupal.'),
    'optional_unique' => TRUE,
  );
  $targets['name'] = array(
    'name' => t('Name'),
    'description' => t('The name of the log.'),
  );
  $targets['timestamp'] = array(
    'name' => t('Timestamp'),
    'description' => t('The UNIX time that represents when the log occurred.'),
  );
  $targets['uid'] = array(
    'name' => t('Author user ID'),
    'description' => t('The user ID of the log author.'),
  );
  $targets['user_name'] = array(
    'name' => t('Author username'),
    'description' => t('The username of the log author.'),
  );
  $targets['user_mail'] = array(
    'name' => t('Author user email'),
    'description' => t('The email address of the log author.'),
  );
  $targets['created'] = array(
    'name' => t('Created date'),
    'description' => t('The UNIX time when a log has been created.'),
  );
  $targets['changed'] = array(
    'name' => t('Updated date'),
    'description' => t('The Unix timestamp when a log has been last updated.'),
  );
  $targets['done'] = array(
    'name' => t('Done'),
    'description' => t('Whether a log is done or not. 1 stands for done, 0 for not done.'),
  );
  $this
    ->getHookTargets($targets);
  return $targets;
}