summaryrefslogtreecommitdiffstats
path: root/core/modules/views_ui
diff options
context:
space:
mode:
authorxjm2017-12-05 03:20:01 (GMT)
committerxjm2017-12-05 03:20:01 (GMT)
commitd6fb4a503cda7aa37d98bf06a5745bafc63e01b1 (patch)
treec8b7a120567393510cec36a32922ef2c8f23db01 /core/modules/views_ui
parentacaf93a810af64099efef54fc9e5271d46c96acd (diff)
Issue #2662574 by RajeevK, Adita, pritish.kumar, afi13, greyghost, tstoeckler, xjm, Cottser, dawehner: Theme suggestions may not be in theme include files, Search and Views UI suggestions are not (always) found
Diffstat (limited to 'core/modules/views_ui')
-rw-r--r--core/modules/views_ui/views_ui.module7
-rw-r--r--core/modules/views_ui/views_ui.theme.inc7
2 files changed, 7 insertions, 7 deletions
diff --git a/core/modules/views_ui/views_ui.module b/core/modules/views_ui/views_ui.module
index 15f85e3..bae74a8 100644
--- a/core/modules/views_ui/views_ui.module
+++ b/core/modules/views_ui/views_ui.module
@@ -157,6 +157,13 @@ function views_ui_preprocess_views_view(&$variables) {
}
/**
+ * Implements hook_theme_suggestions_HOOK().
+ */
+function views_ui_theme_suggestions_views_ui_view_preview_section(array $variables) {
+ return ['views_ui_view_preview_section__' . $variables['section']];
+}
+
+/**
* Returns contextual links for each handler of a certain section.
*
* @TODO
diff --git a/core/modules/views_ui/views_ui.theme.inc b/core/modules/views_ui/views_ui.theme.inc
index e6ef875..d1aef4c 100644
--- a/core/modules/views_ui/views_ui.theme.inc
+++ b/core/modules/views_ui/views_ui.theme.inc
@@ -547,10 +547,3 @@ function template_preprocess_views_ui_view_preview_section(&$variables) {
$variables['links'] = $build;
}
}
-
-/**
- * Implements hook_theme_suggestions_HOOK().
- */
-function views_ui_theme_suggestions_views_ui_view_preview_section(array $variables) {
- return ['views_ui_view_preview_section__' . $variables['section']];
-}