public function MigrateDestinationPrivatemsg::fields in Migrate Extras 6.2
Same name and namespace in other branches
- 7.2 privatemsg.inc \MigrateDestinationPrivateMsg::fields()
Returns a list of fields available to be mapped for private messages
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
- ./
privatemsg.inc, line 38 - Support for the Privatemsg module.
Class
- MigrateDestinationPrivatemsg
- Destination class implementing
Code
public function fields() {
$fields = array(
'mid' => t('Message ID'),
//this is to be set on the fly, don't need
'author' => t('Author UID'),
// sender of msg
'subject' => t('Subject'),
// subject
'body' => t('Message Body'),
// the actual message
'format' => t('Message Input format ID'),
//the input format ID
'timestamp' => t('Timestamp'),
//timestamp
//'thread_id' => t('Thread Message ID'), //mid of original msg ro threaded discussion (optional)
'recipient' => t('UID of the recipient'),
'author_is_new' => t('Whether the author has read this message'),
'recipient_is_new' => t('Whether the recipient has read this message'),
'author_del' => t('Whether the author has deleted this message'),
'recipient_del' => t('Whether the recipient has deleted this message'),
);
$fields += migrate_handler_invoke_all('Privatemsg', 'fields', $this->entityType, $this->bundle);
return $fields;
}