From 9f8de06ce5c894ae34fbdface91c90b4c470352c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 24 Apr 2010 07:11:07 +0000 Subject: - Patch #491214 by jhodgdon: added missing documentation. --- modules/system/theme.api.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'modules') diff --git a/modules/system/theme.api.php b/modules/system/theme.api.php index 8d073abd9..fcf6e317e 100644 --- a/modules/system/theme.api.php +++ b/modules/system/theme.api.php @@ -93,3 +93,30 @@ function hook_form_system_theme_settings_alter(&$form, &$form_state) { '#description' => t('Show a trail of links from the homepage to the current page.'), ); } + +/** + * Respond to themes being enabled. + * + * @param array $theme_list + * Array containing the names of the themes being enabled. + * + * @see theme_enable() + */ +function hook_themes_enabled($theme_list) { + foreach ($theme_list as $theme) { + block_theme_initialize($theme); + } +} + +/** + * Respond to themes being disabled. + * + * @param array $theme_list + * Array containing the names of the themes being disabled. + * + * @see theme_disable() + */ +function hook_themes_disabled($theme_list) { + // Clear all update module caches. + _update_cache_clear(); +} -- cgit v1.2.3