public function MigrateDestinationPrivateMsg::fields in Migrate Extras 7.2
Same name and namespace in other branches
- 6.2 privatemsg.inc \MigrateDestinationPrivatemsg::fields()
Returns a list of fields available to be mapped/
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 49 - Privatemag module integration
Class
- MigrateDestinationPrivateMsg
- @file Privatemag module integration
Code
public function fields() {
$fields = array(
// 'mid' => 'Message ID', // Updating not supported. See http://drupal.org/node/1184984.
'subject' => 'Subject',
'body' => 'Body',
'format' => 'Text format name for the Body',
'recipients' => 'User IDs of recipients',
'timestamp' => 'Timestamp',
'author' => 'User ID of author',
'is_new' => 'TRUE if unread by recipient, FALSE if read by recipient',
);
// Then add in anything provided by handlers
$fields += migrate_handler_invoke_all('Entity', 'fields', $this->entityType, $this->bundle);
$fields += migrate_handler_invoke_all('PrivateMsg', 'fields', $this->entityType, $this->bundle);
return $fields;
}