From 03ae384ca87f2e29197c9822c8a28a07953f238c Mon Sep 17 00:00:00 2001 From: Jen Lampton Date: Wed, 3 Apr 2024 15:51:21 -0700 Subject: [PATCH] Add an update hook to rebuild the theme registry. --- tagadelic.install | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/tagadelic.install b/tagadelic.install index 6425cce..5700810 100644 --- a/tagadelic.install +++ b/tagadelic.install @@ -33,9 +33,31 @@ function tagadelic_update_1000() { update_variable_del('tagadelic_block_title_' . $machine_name); update_variable_del('tagadelic_block_tags_' . $machine_name); } + + return t('Old Drupal 7 varaibles converted to Backdrop configuration.'); } /** * @} End of "defgroup updates-7.x-to-1.x" - * The next series of updates should start at 2000. */ + +/** + * @defgroup updates-for-1.x Updates for Backdrop 1.x + * @{ + * Update functions from Drupal 7.x to Backdrop CMS 1.x. + */ + +/** + * Rebuild the theme registry. + */ +function tagadelic_update_1001() { + // Rebuild the theme registry for the new theme.inc file. + system_rebuild_theme_data(); + + return t('Theme registry rebuilt for Tagadelic module.'); +} + +/** + * @} End of "defgroup updates-for-1.x" + * The next series of updates should start at 2000. + */ \ No newline at end of file