public function MigratePollEntityHandler::fields in Migrate 7.2
Implementation of MigrateDestinationHandler::fields().
File
- plugins/
destinations/ poll.inc, line 69 - Support for poll nodes.
Class
- MigratePollEntityHandler
- @file Support for poll nodes.
Code
public function fields($entity_type, $bundle, $migration = NULL) {
if ($bundle == 'poll') {
$fields = array(
'active' => t('Active status'),
'runtime' => t('How long the poll runs for in seconds'),
'choice' => t('Choices. Each choice is an array with chtext, chvotes, and weight keys.'),
'votes' => t('Votes. Each vote is an array with chid (or chtext), uid, hostname, and timestamp keys'),
);
}
else {
$fields = array();
}
return $fields;
}