W3cubDocs

/Drupal 8

function 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);
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!theme.api.php/function/hook_themes_installed/8.1.x