You are here

public function WordPressMigration::showMessage in WordPress Migrate 7

Suppress normal migrate module output in the browser. In drush, use drush_print instead of drush_log to capture output (non-informational) for email.

File

./wordpress.inc, line 55
Implementation of migration from WordPress into Drupal

Class

WordPressMigration
@file Implementation of migration from WordPress into Drupal

Code

public function showMessage($message, $level = MigrationBase::MESSAGE_ERROR) {
  if (function_exists('drush_print') && $level != 'completed') {
    drush_print($message);
  }
}