diff --git a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_display_template.yml b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_display_template.yml index 808e6b6..f005f00 100644 --- a/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_display_template.yml +++ b/core/modules/views/tests/modules/views_test_config/test_views/views.view.test_view_display_template.yml @@ -30,6 +30,7 @@ display: label: '' exclude: '0' alter: { } + provider: views_test_config filters: { } sorts: { } header: { } diff --git a/core/modules/views/views.module b/core/modules/views/views.module index 2fd799b..2177fad 100644 --- a/core/modules/views/views.module +++ b/core/modules/views/views.module @@ -136,7 +136,7 @@ function views_theme($existing, $type, $theme, $path) { // templates folder. This will be in any case the root of the given module // so we always need a module definition. // @todo: watchdog or exception? - if (!isset($def['module'])) { + if (!isset($def['provider'])) { continue; } @@ -145,11 +145,11 @@ function views_theme($existing, $type, $theme, $path) { ); // For the views module we ensure views.theme.inc is included. - if ($def['module'] == 'views') { + if ($def['provider'] == 'views') { $def['theme_file'] = 'views.theme.inc'; } // We always use the module directory as base dir. - $module_dir = drupal_get_path('module', $def['module']); + $module_dir = drupal_get_path('module', $def['provider']); // The theme_file definition is always relative to the modules directory. if (isset($def['theme_file'])) {