Now all modules are in core modules folder

This commit is contained in:
Manuel Cillero 2017-08-08 12:14:45 +02:00
parent 5ba1cdfa0b
commit 05b6a91b0c
1907 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,30 @@
/**
* Toggle the advagg cookie
*/
function advagg_toggle_cookie() {
var cookie_name = 'AdvAggDisabled';
// See if the cookie exists.
var cookie_pos = document.cookie.indexOf(cookie_name + '=' + Drupal.settings.advagg.key);
// If the cookie does exist then remove it.
if (cookie_pos !== -1) {
document.cookie = cookie_name + '=;'
+ 'expires=-1;'
+ ' path=' + Drupal.settings.basePath + ';'
+ ' domain=.' + document.location.hostname + ';';
alert(Drupal.t('AdvAgg Bypass Cookie Removed'));
}
// If the cookie does not exsit then set it.
else {
document.cookie = cookie_name + '=' + Drupal.settings.advagg.key + ';'
+ ' path=' + Drupal.settings.basePath + ';'
+ ' domain=.' + document.location.hostname + ';';
alert(Drupal.t('AdvAgg Bypass Cookie Set'));
}
// Must return false, if returning true then form gets submitted.
return false;
}