summaryrefslogtreecommitdiffstats
path: root/migrate.module
diff options
context:
space:
mode:
authorMike Ryan2011-03-30 16:49:22 -0400
committerMike Ryan2011-03-30 16:49:22 -0400
commit4bff337367001f103ba7920767e7c72de9c4dc04 (patch)
treedeeaab2e9b65668bc97b2209fbe8d7a9c6ca52d0 /migrate.module
parent6488b409993f08440230b25a1254b58952306d6e (diff)
Issue #101308 by mikeryan: Support Views 3.0
Diffstat (limited to 'migrate.module')
-rwxr-xr-xmigrate.module8
1 files changed, 8 insertions, 0 deletions
diff --git a/migrate.module b/migrate.module
index d86cfa7..8831fbc 100755
--- a/migrate.module
+++ b/migrate.module
@@ -184,6 +184,10 @@ function migrate_save_content_set(&$content_set, $options = array()) {
return NULL;
}
// Must do this to load the database
+ $views_version = (string)views_api_version();
+ if (views_api_version() >= '3') {
+ $view->init_display('default');
+ }
$view->init_query();
if (isset($view->base_database)) {
@@ -1206,6 +1210,10 @@ function migrate_schema_alter(&$schema) {
continue;
}
// Must do this to load the database
+ $views_version = (string)views_api_version();
+ if (views_api_version() >= '3') {
+ $view->init_display('default');
+ }
$view->init_query();
// TODO: For now, PK must be in base_table