You are here

function wysiwyg_update_6200 in Wysiwyg 6.2

Clear JS/CSS caches to ensure that clients load fresh copies.

File

./wysiwyg.install, line 220

Code

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

  // Change query-strings on css/js files to enforce reload for all users.
  _drupal_flush_css_js();
  drupal_clear_css_cache();
  drupal_clear_js_cache();

  // Rebuild the menu to remove old admin/settings/wysiwyg/profile item.
  menu_rebuild();

  // Flush content caches.
  cache_clear_all();
  $ret[] = array(
    'success' => TRUE,
    'query' => 'Caches have been flushed.',
  );
  return $ret;
}