Skip to content

Commit

Permalink
Add an update hook to rebuild the theme registry.
Browse files Browse the repository at this point in the history
  • Loading branch information
jenlampton committed Apr 3, 2024
1 parent 5f8518c commit 03ae384
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion tagadelic.install
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/

0 comments on commit 03ae384

Please sign in to comment.