Commit c6415d4f authored by alexpott's avatar alexpott

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
......@@ -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';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment