public function MigrateDestinationVotingApiVote::fields in Voting API 7.3
Same name and namespace in other branches
- 7.2 votingapi.migrate.inc \MigrateDestinationVotingApiVote::fields()
Derived classes must implement fields(), returning a list of available destination fields.
Parameters
Migration $migration: Optionally, the migration containing this destination.
Return value
array Keys: machine names of the fields (to be passed to addFieldMapping) Values: Human-friendly descriptions of the fields.
Overrides MigrateDestination::fields
File
- ./
votingapi.migrate.inc, line 40 - Migration support for voting api.
Class
- MigrateDestinationVotingApiVote
- @file Migration support for voting api.
Code
public function fields() {
return array(
'vote_id' => 'Vote ID',
'entity_type' => "Entity Type (defaults to 'node')",
'entity_id' => 'Entity ID',
'value' => 'Numeric vote value',
'value_type' => "Value type (percent/points, defaults to 'percent')",
'tag' => "Tag (defaults to 'vote')",
'uid' => 'User ID',
'timestamp' => 'Timestamp',
'vote_source' => 'Vote Source IP Address',
);
}