reverted: --- b/migrate.views.inc +++ /dev/null @@ -1,29 +0,0 @@ -getMap(); - if (!is_a($map, 'MigrateSQLMap')) { - continue; - } - - // The map handler defines its table to Views. - $map->hook_views_data_alter($data); - - $map_table = $map->getMapTable(); - - // The destination handler may define a relationships to and from the map - // table. - $destination = $migration->getDestination(); - $destination->hook_views_data_alter($data, $map_table); - } -} diff -u b/plugins/sources/sqlmap.inc b/plugins/sources/sqlmap.inc --- b/plugins/sources/sqlmap.inc +++ b/plugins/sources/sqlmap.inc @@ -62,15 +62,92 @@ $data[$this->mapTable] = array( 'table' => array( 'group' => t('Migrate'), + 'base' => array( + 'field' => 'sourceid1', + 'title' => $this->mapTable, + 'help' => t('Migrate map.'), + ), ), 'sourceid1' => array( + 'title' => 'source id 1', + 'help' => 'source id 1', + 'field' => array( + 'handler' => 'views_handler_field', + ), + 'sort' => array( + 'handler' => 'views_handler_sort', + ), + 'filter' => array( + 'handler' => 'views_handler_filter_string', + ), + ), + 'destid1' => array( + 'title' => 'destiny id 1', + 'help' => 'destiny id 1', + 'field' => array( + 'handler' => 'views_handler_field', + ), + 'sort' => array( + 'handler' => 'views_handler_sort', + ), + 'filter' => array( + 'handler' => 'views_handler_filter_string', + ), + ), + 'needs_update' => array( + 'title' => 'needs update', + 'help' => 'needs update', + 'field' => array( + 'handler' => 'views_handler_field_numeric', + ), + 'sort' => array( + 'handler' => 'views_handler_sort', + ), + 'filter' => array( + 'handler' => 'views_handler_filter_numeric', + ), + ), + 'rollback_action' => array( + 'title' => 'rollback action', + 'help' => 'rollback action', 'field' => array( - 'title' => 'source id 1', - 'help' => 'too', 'handler' => 'views_handler_field_numeric', ), + 'sort' => array( + 'handler' => 'views_handler_sort', + ), + 'filter' => array( + 'handler' => 'views_handler_filter_numeric', + ), + ), + 'last_imported' => array( + 'title' => 'last imported', + 'help' => 'last imported', + 'field' => array( + 'handler' => 'views_handler_field_date', + ), + 'sort' => array( + 'handler' => 'views_handler_sort_date', + ), + 'filter' => array( + 'handler' => 'views_handler_filter_date', + ), + ), + 'hash' => array( + 'title' => 'hash', + 'help' => 'hash', + 'field' => array( + 'handler' => 'views_handler_field', + ), + 'sort' => array( + 'handler' => 'views_handler_sort', + ), + 'filter' => array( + 'handler' => 'views_handler_filter_string', + ), ), ); + } /** @@ -104,7 +181,7 @@ * @param array $destination_key * The database schema for the destination key. * @param string $connection_key - * Optional - The connection used to create the mapping tables. By default + * Optional - The connection used to create the mapping tables. By default * this is the destination (Drupal). If it's not possible to make joins * between the destination database and your source database you can specify * a different connection to create the mapping tables on.