public function DrupalMenu6Migration::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
File
- d6/
menu.inc, line 38 - Implementation of DrupalMenuMigration for Drupal 6 sources.
Class
Code
public function prepareRow($row) {
if (parent::prepareRow($row) === FALSE) {
return FALSE;
}
// D6 prefixes menus added through the UI with 'menu-'
if ($row->menu_name == 'secondary-links' || substr($row->menu_name, 0, 5) === 'menu-') {
return TRUE;
}
else {
return FALSE;
}
}