summaryrefslogtreecommitdiffstats
path: root/core/modules/views_ui
diff options
context:
space:
mode:
authorxjm2017-12-05 03:09:25 (GMT)
committerxjm2017-12-05 03:09:25 (GMT)
commit81d17351e0961df47721879d4725199e21eaa9a6 (patch)
treec8b7a120567393510cec36a32922ef2c8f23db01 /core/modules/views_ui
parente382945bb7d721d99748f1910c716468f9894bca (diff)
Issue #2662574 by RajeevK, Adita, pritish.kumar, afi13, AjitS, greyghost: 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']];
-}