You are here

function availability_calendar_update_7302 in Availability Calendars 7.5

Same name and namespace in other branches
  1. 7.4 availability_calendar.install \availability_calendar_update_7302()

Regenerate custom styles file and display warning.

File

./availability_calendar.install, line 310

Code

function availability_calendar_update_7302(&$sandbox) {
  $t = get_t();
  module_load_include('inc', 'availability_calendar', 'availability_calendar.styles');
  availability_calendar_styles_generate();
  $link = l('CHANGELOG.txt', drupal_get_path('module', 'availability_calendar') . "/CHANGELOG.txt", array(
    'language' => LANGUAGE_NONE,
  ));
  drupal_set_message($t("Availability Calendar: please read the 'Incompatibilities with 7.x-3.x' section in '!link' for a list of actions (like clear caches, set date formats) you have to perform right now to keep this module working.", array(
    '!link' => $link,
  )), 'warning');
}