function textsize_update_5170 in Text Size 5
Update 5170 for 5.x-1.7: Change the cookie domain.
File
- ./
textsize.install, line 147 - This file update or uninstall the Text Size module.
Code
function textsize_update_5170() {
$ret = array();
// 1 Compatible to old cookies.
variable_set('textsize_cookie_domain', '/');
drupal_set_message(t('Text Size') . ' ' . t('module') . '. ' . t('Update') . ' #5170: ' . t('Variable updated:') . ' "<em>textsize_cookie_domain: /</em>".', 'status');
// 2 Message cookie domain.
$link_ts_cookie_domain = '<a title="' . t('Text Size configuration') . ': ' . t('Cookie Domain') . '" href="' . url('admin/settings/textsize', $query = NULL, $fragment = 'edit-textsize-cookie-domain-wrapper') . '">' . t('Text Size configuration') . ': ' . t('Cookie Domain') . '</a>';
drupal_set_message(t('Text Size') . ' ' . t('module') . '. ' . t('Update') . ' #5170: ' . t('The cookie domain is now editable on:') . ' ' . $link_ts_cookie_domain . '. ' . t('For a compatibility to old cookies, use:') . ' "/".', 'ok');
return $ret;
}