Skip to content
Snippets Groups Projects
Commit c6415d4f authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2490974 by jstoller: seven_library_info_alter() is missing $extension...

Issue #2490974 by jstoller: seven_library_info_alter() is missing $extension parameter and condition
parent 00286580
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -201,16 +201,16 @@ function seven_form_node_form_alter(&$form, FormStateInterface $form_state) {
/**
* Implements hook_library_info_alter().
*/
function seven_library_info_alter(&$libraries) {
if (isset($libraries['drupal.vertical-tabs'])) {
function seven_library_info_alter(&$libraries, $extension) {
if ($extension == 'core' && isset($libraries['drupal.vertical-tabs'])) {
unset($libraries['drupal.vertical-tabs']['css']['component']['misc/vertical-tabs.css']);
$libraries['drupal.vertical-tabs']['dependencies'][] = 'seven/vertical-tabs';
}
if (isset($libraries['jquery.ui'])) {
if ($extension == 'core' && isset($libraries['jquery.ui'])) {
unset($libraries['jquery.ui']['css']['theme']['assets/vendor/jquery.ui/themes/base/theme.css']);
$libraries['jquery.ui']['dependencies'][] = 'seven/seven.jquery.ui';
}
if (isset($libraries['drupal.dialog'])) {
if ($extension == 'core' && isset($libraries['drupal.dialog'])) {
unset($libraries['drupal.dialog']['css']['theme']['misc/dialog.theme.css']);
$libraries['drupal.dialog']['dependencies'][] = 'seven/seven.drupal.dialog';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment