You are here

function themekey_update_6203 in ThemeKey 6.2

Same name and namespace in other branches
  1. 6.4 themekey.install \themekey_update_6203()
  2. 6.3 themekey.install \themekey_update_6203()
  3. 7.3 themekey.install \themekey_update_6203()
  4. 7 themekey.install \themekey_update_6203()
  5. 7.2 themekey.install \themekey_update_6203()

Implements hook_update_N().

File

./themekey.install, line 351
Database schema of @author Markus Kalkbrenner | Cocomore AG

Code

function themekey_update_6203() {

  // calling themekey_rebuild() at this point will cause an error because
  // modified schema is not yet populated
  // therefor we show a message
  drupal_set_message(t("ThemeKey won't work correctly until you click 'Save configuration' at !settings_link. If you don't see a 'Save configuration' button you need to clear your cache first.", array(
    '!settings_link' => l(t("ThemeKey settings"), 'admin/settings/themekey/settings'),
  )), 'error');
  if (module_exists('themekey_ui')) {
    drupal_set_message(t("ThemeKey UI won't work correctly until click 'Save configuration' at !settings_link. If you don't see a 'Save configuration' button you need to clear your cache first.", array(
      '!settings_link' => l(t("ThemeKey UI settings"), 'admin/settings/themekey/settings/ui'),
    )), 'error');
  }
  return array();
}