function system_theme_registry_alter
Same name in other branches
- 9 core/modules/system/system.module \system_theme_registry_alter()
Implements hook_theme_registry_alter().
File
-
core/
modules/ system/ system.module, line 1269
Code
function system_theme_registry_alter(array &$theme_registry) {
// If Claro is the admin theme but not the active theme, use Claro's toolbar
// templates.
if (_system_is_claro_admin_and_not_active()) {
require_once DRUPAL_ROOT . '/core/themes/claro/claro.theme';
claro_system_module_invoked_theme_registry_alter($theme_registry);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.