hook_themes_installed

hook_themes_installed($theme_list)

Respond to themes being installed.

Parameters

array $theme_list: Array containing the names of the themes being installed.

See also

\Drupal\Core\Extension\ThemeHandler::install()

Related topics

Hooks
Define functions that alter the behavior of Drupal core.

File

core/lib/Drupal/Core/Render/theme.api.php, line 728
Hooks and documentation related to the theme and render system.

Code

function hook_themes_installed($theme_list) {
  foreach ($theme_list as $theme) {
    block_theme_initialize($theme);
  }
}
doc_Drupal
2016-10-29 09:18:31
Comments
Leave a Comment

Please login to continue.