Skip to content
Snippets Groups Projects
Commit bbd17bc7 authored by 🙄 ✻'s avatar 🙄 ✻
Browse files

psu cdn updated to cloudfront

parent 898442f5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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', '');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment