Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
webcomponents
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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
webcomponents
Commits
bbd17bc7
Commit
bbd17bc7
authored
5 years ago
by
🙄 ✻
Browse files
Options
Downloads
Patches
Plain Diff
psu cdn updated to cloudfront
parent
898442f5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
webcomponents.install
+9
-0
9 additions, 0 deletions
webcomponents.install
webcomponents.module
+3
-3
3 additions, 3 deletions
webcomponents.module
with
12 additions
and
3 deletions
webcomponents.install
+
9
−
0
View file @
bbd17bc7
...
...
@@ -148,4 +148,13 @@ function webcomponents_update_7000(&$sandbox) {
*/
function
webcomponents_install
()
{
_webcomponents_rebuild
(
TRUE
);
}
/**
* PSU CDN moved so if old valid move to the new one
*/
function
webcomponents_update_7001
(
&
$sandbox
)
{
if
(
variable_get
(
'webcomponents_project_location'
,
'https://cdn.webcomponents.psu.edu/cdn/'
)
==
'https://webcomponents.psu.edu/cdn/'
)
{
variable_set
(
'webcomponents_project_location'
,
'https://cdn.webcomponents.psu.edu/cdn/'
);
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
webcomponents.module
+
3
−
3
View file @
bbd17bc7
...
...
@@ -29,9 +29,9 @@ function webcomponents_admin_settings($form, &$form_state) {
$form
[
'webcomponents_project_location'
]
=
[
'#type'
=>
'select'
,
'#title'
=>
t
(
'Webcomponents Location'
),
'#default_value'
=>
variable_get
(
'webcomponents_project_location'
,
'https://webcomponents.psu.edu/cdn/'
),
'#default_value'
=>
variable_get
(
'webcomponents_project_location'
,
'https://
cdn.
webcomponents.psu.edu/cdn/'
),
'#options'
=>
array
(
'https://webcomponents.psu.edu/cdn/'
=>
'Penn State CDN'
,
'https://
cdn.
webcomponents.psu.edu/cdn/'
=>
'Penn State CDN'
,
'https://cdn.waxam.io/'
=>
'Waxam CDN'
,
'sites/all/libraries/webcomponents/'
=>
'Local libraries folder (sites/all/libraries/webcomponents/)'
,
'other'
=>
t
(
'Other'
),
...
...
@@ -52,7 +52,7 @@ function webcomponents_admin_settings($form, &$form_state) {
* Implements hook_process_html().
*/
function
webcomponents_process_html
(
&
$variables
)
{
$location
=
variable_get
(
'webcomponents_project_location'
,
'https://webcomponents.psu.edu/cdn/'
);
$location
=
variable_get
(
'webcomponents_project_location'
,
'https://
cdn.
webcomponents.psu.edu/cdn/'
);
if
(
$location
==
'other'
)
{
$location
=
variable_get
(
'webcomponents_project_location_other'
,
''
);
}
...
...
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