Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
a68a2e23
Commit
a68a2e23
authored
Dec 4, 2013
by
Angie Byron
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2095311
by Wim Leers: Remove drupal_add_css() from update.module.
parent
41623883
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
core/modules/update/update.manager.inc
+1
-1
1 addition, 1 deletion
core/modules/update/update.manager.inc
core/modules/update/update.module
+17
-0
17 additions, 0 deletions
core/modules/update/update.module
core/modules/update/update.report.inc
+10
-1
10 additions, 1 deletion
core/modules/update/update.report.inc
with
28 additions
and
2 deletions
core/modules/update/update.manager.inc
+
1
−
1
View file @
a68a2e23
...
...
@@ -82,7 +82,7 @@ function update_manager_update_form($form, $form_state = array(), $context) {
return
$form
;
}
$form
[
'#attached'
][
'
css'
][]
=
drupal_get_path
(
'module'
,
'update'
)
.
'/css/
update.admin
.css
'
;
$form
[
'#attached'
][
'
library'
][]
=
array
(
'update'
,
'drupal.
update.admin'
)
;
// This will be a nested array. The first key is the kind of project, which
// can be either 'enabled', 'disabled', 'manual' (projects which require
...
...
This diff is collapsed.
Click to expand it.
core/modules/update/update.module
+
17
−
0
View file @
a68a2e23
...
...
@@ -144,6 +144,23 @@ function update_page_build() {
}
}
/**
* Implements hook_library_info().
*/
function
update_library_info
()
{
$path
=
drupal_get_path
(
'module'
,
'update'
);
$libraries
[
'drupal.update.admin'
]
=
array
(
'title'
=>
'Update administration UI'
,
'website'
=>
''
,
'version'
=>
\Drupal
::
VERSION
,
'css'
=>
array
(
$path
.
'/css/update.admin.css'
=>
array
(),
),
);
return
$libraries
;
}
/**
* Implements hook_menu().
*/
...
...
This diff is collapsed.
Click to expand it.
core/modules/update/update.report.inc
+
10
−
1
View file @
a68a2e23
...
...
@@ -293,7 +293,16 @@ function theme_update_report($variables) {
$output
.
=
drupal_render
(
$table
);
}
}
drupal_add_css
(
drupal_get_path
(
'module'
,
'update'
)
.
'/css/update.admin.css'
);
$assets
=
array
(
'#attached'
=>
array
(
'library'
=>
array
(
array
(
'update'
,
'drupal.update.admin'
),
),
)
);
drupal_render
(
$assets
);
return
$output
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment