public function CommentNotifyMigrationHandler::prepare in Comment Notify 7
Same name and namespace in other branches
- 8 comment_notify.migrate.inc \CommentNotifyMigrationHandler::prepare()
Implements MigrateDestinationHandler::prepare().
Parameters
object $comment: The comment object being prepared for saving.
$row: Raw source data for the migration - ignored.
File
- ./
comment_notify.migrate.inc, line 35 - Migration support for the Comment Notify module.
Class
- CommentNotifyMigrationHandler
- Field handler.
Code
public function prepare($comment, $row) {
// By default, set notifications off.
if (!isset($comment->notify)) {
$comment->notify = 0;
}
if (!isset($comment->notify_type)) {
$comment->notify_type = 1;
}
}