You are here

function pagestyle_update_7110 in Page Style 7

Update 7110 for 7.x-1.1: Delete unused varibales and presend informations.

File

./pagestyle.install, line 56
This file install and uninstall the Page Style module.

Code

function pagestyle_update_7110() {
  $ret = array();

  // 1 Delete variable pagestyle_fontweight_standard.
  variable_del('pagestyle_fontweight_standard', 'normal');
  drupal_set_message(t('Page Style') . ' ' . t('module') . '. ' . t('Update') . ' #7110: ' . t('Variable deleted:') . ' "<del><em>pagestyle_fontweight_standard: normal</em></del>".', 'status');

  // 2 Present information about the Page Style switcher in the browser menu.
  drupal_set_message(t('Page Style') . ' ' . t('module') . '. ' . t('Update') . ' #7110: ' . t('Feature deactivated:') . ' "<em>' . t('Advanced settings') . '/' . l(t('Add Page Style switcher in the browser menu'), 'admin/config/user-interface/pagestyle', array(
    'attributes' => array(
      'title' => t('Internal link to:') . ' ' . t('Add Page Style switcher in the browser menu'),
    ),
    'fragment' => 'edit-pagestyle-browser-style-switcher',
  )) . ': ' . t('Unchecked') . '</em>".', 'warning');

  // 3 Present information about caching.
  drupal_set_message(t('Page Style') . ' ' . t('module') . '. ' . t('Update') . ' #7110: ' . t('New feature:') . ' ' . ' "<em>' . t('Advanced settings') . '/' . t('Scripting languages') . '/' . l('PHP + JavaScript + ' . t('Optimized for performance'), 'admin/config/user-interface/pagestyle', array(
    'attributes' => array(
      'title' => t('Internal link to:') . ' ' . 'PHP + JavaScript + ' . t('Optimized for performance'),
    ),
    'fragment' => 'edit-pagestyle-javascript-2',
  )) . ': ' . t('Unchecked') . '</em>". ' . t('If you use caching, set it to:') . ' "' . t('Checked') . '".', 'status');
  return $ret;
}