function toolbar_themes_library_info_alter in Toolbar Themes 8
Implements hook_library_info_alter().
Parameters
$libraries:
$extension:
File
- ./
toolbar_themes.module, line 66
Code
function toolbar_themes_library_info_alter(&$libraries, $extension) {
// Remove Toolbar modules CSS.
if ($extension === 'toolbar') {
unset($libraries['toolbar']['css']);
unset($libraries['toolbar.menu']['css']);
}
// Remove Admin Toolbar modules CSS.
if ($extension === 'admin_toolbar') {
if (isset($libraries['toolbar.tree'])) {
unset($libraries['toolbar.tree']);
}
}
}