From 69e780598e727bb187455590728c61ccabd034ad Mon Sep 17 00:00:00 2001 From: Don Richards <2738244+DonRichards@users.noreply.github.com> Date: Tue, 30 Nov 2021 13:58:56 -0500 Subject: [PATCH] Add theme hook for homepage --- islandora.module | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/islandora.module b/islandora.module index 738be5b4..e0de7120 100644 --- a/islandora.module +++ b/islandora.module @@ -536,3 +536,17 @@ function islandora_preprocess_views_view_table(&$variables) { } } } + +/** + * Implements hook_theme() + * @return mixed + */ +function islandora_theme() { + // If homepage is not manually set, use the default. + $theme['welcome'] = [ + 'variables' => ['name' => NULL], + 'template' => 'welcome', + ]; + + return $theme; +}