diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-04-24 07:11:07 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-04-24 07:11:07 +0000 |
commit | 9f8de06ce5c894ae34fbdface91c90b4c470352c (patch) | |
tree | d8c42b0f0c92af6d9adcd42551491e37628df050 /modules | |
parent | afcde4bde40a5e1bf650b6bcfa5183be62e53b8e (diff) | |
download | brdo-9f8de06ce5c894ae34fbdface91c90b4c470352c.tar.gz brdo-9f8de06ce5c894ae34fbdface91c90b4c470352c.tar.bz2 |
- Patch #491214 by jhodgdon: added missing documentation.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/system/theme.api.php | 27 |
1 files changed, 27 insertions, 0 deletions
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(); +} |