public function WordPressAttachment::prepareRow in WordPress Migrate 7
Same name and namespace in other branches
- 7.2 wordpress_attachment.inc \WordPressAttachment::prepareRow()
Data manipulations to be performed before migrate module applies mappings.
Parameters
stdClass $row:
Return value
string
Overrides Migration::prepareRow
File
- ./
wordpress_attachment.inc, line 146
Class
- WordPressAttachment
- Implementation of WordPressMigration, for attachments
Code
public function prepareRow($row) {
// If incoming date is zero (indicates unpublished content), use the current time
if ($row->post_date == '0000-00-00 00:00:00') {
$row->post_date = time();
}
return TRUE;
}