protected function DrupalComment5Migration::handleStatus in Drupal-to-Drupal data migration 7.2
Default status flag values flipped in D7. Non-standard statuses are kept.
Parameters
$value:
Return value
int
File
- d5/
comment.inc, line 65 - Implementation of DrupalCommentMigration for Drupal 5 sources.
Class
- DrupalComment5Migration
- Handling specific to a Drupal 5 source for comments.
Code
protected function handleStatus($value) {
if ($value == 0) {
return 1;
}
elseif ($value == 1) {
return 0;
}
else {
return $value;
}
}