diff -u b/plugins/sources/sqlmap.inc b/plugins/sources/sqlmap.inc --- b/plugins/sources/sqlmap.inc +++ b/plugins/sources/sqlmap.inc @@ -54,6 +54,12 @@ } /** + * Drupal connection object on which to create the map/message tables + * @var DatabaseConnection + */ + } + + /** * Helper for hook_views_data_alter(). * * Derived classes that are able to add to views data may implement this. @@ -62,21 +68,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', + ), ), ); - } - /** - * Drupal connection object on which to create the map/message tables - * @var DatabaseConnection - */ } /** @@ -110,7 +187,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.