You are here

public function DrupalTermMigration::prepareRow in Drupal-to-Drupal data migration 7.2

Review a data row after fetch, returning FALSE to skip it.

Parameters

$row:

Return value

bool

Overrides Migration::prepareRow

3 calls to DrupalTermMigration::prepareRow()
DrupalTerm5Migration::prepareRow in d5/taxonomy.inc
Implementation of Migration::prepareRow().
DrupalTerm6Migration::prepareRow in d6/taxonomy.inc
Implementation of Migration::prepareRow().
DrupalTerm7Migration::prepareRow in d7/taxonomy.inc
Review a data row after fetch, returning FALSE to skip it.
3 methods override DrupalTermMigration::prepareRow()
DrupalTerm5Migration::prepareRow in d5/taxonomy.inc
Implementation of Migration::prepareRow().
DrupalTerm6Migration::prepareRow in d6/taxonomy.inc
Implementation of Migration::prepareRow().
DrupalTerm7Migration::prepareRow in d7/taxonomy.inc
Review a data row after fetch, returning FALSE to skip it.

File

./taxonomy.inc, line 93
Base class for migrating taxonomy terms into Drupal.

Class

DrupalTermMigration
Base class for migrations of Drupal taxonomy terms from another Drupal installation.

Code

public function prepareRow($row) {
  if (parent::prepareRow($row) === FALSE) {
    return FALSE;
  }

  // Add the path to the source row, if relevant
  if ($this
    ->moduleExists('path')) {
    $path = $this->version
      ->getPath('taxonomy/term/' . $row->tid);
    if ($path) {
      $row->path = $path;
    }
  }
  return TRUE;
}