You are here

public function CommentNotifyMigrationHandler::prepare in Comment Notify 8

Same name and namespace in other branches
  1. 7 comment_notify.migrate.inc \CommentNotifyMigrationHandler::prepare()

Implements MigrateDestinationHandler::prepare().

Parameters

$comment: The comment object being prepared for saving.

$row: Raw source data for the migration - ignored.

File

./comment_notify.migrate.inc, line 39
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;
  }
}