You are here

function geshifilter_update_6003 in GeSHi Filter for syntax highlighting 6

Implementation of hook_update_N().

(Re)generate the languages CSS file to be sure it exists. (References: http://drupal.org/node/269140, http://drupal.org/node/682068)

File

./geshifilter.install, line 136
Installation and uninstallation functions for the GeSHi filter.

Code

function geshifilter_update_6003() {
  if (GESHIFILTER_CSS_CLASSES_AUTOMATIC == variable_get('geshifilter_css_mode', GESHIFILTER_CSS_INLINE)) {
    require_once drupal_get_path('module', 'geshifilter') . '/geshifilter.admin.inc';
    _geshifilter_generate_languages_css_file();
  }
  return array();
}