You are here

function textsize_update_6170 in Text Size 6

Update 6170 for 6.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_6170() {
  $ret = array();

  // 1 Compatible to old cookies.
  variable_set('textsize_cookie_domain', '/');
  drupal_set_message(t('Text Size') . ' ' . t('module') . '. ' . t('Update') . ' #6170: ' . 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', array(
    'fragment' => 'edit-textsize-cookie-domain-wrapper',
  )) . '">' . t('Text Size configuration') . ': ' . t('Cookie Domain') . '</a>';
  drupal_set_message(t('Text Size') . ' ' . t('module') . '. ' . t('Update') . ' #6170: ' . t('The cookie domain is now editable on:') . ' ' . $link_ts_cookie_domain . '. ' . t('For a compatibility to old cookies, use:') . ' "/".', 'ok');
  return $ret;
}