You are here

function responsive_menu_cache_flush in Responsive and off-canvas menu 8.2

Same name and namespace in other branches
  1. 8.3 responsive_menu.module \responsive_menu_cache_flush()
  2. 4.4.x responsive_menu.module \responsive_menu_cache_flush()
  3. 4.0.x responsive_menu.module \responsive_menu_cache_flush()
  4. 4.1.x responsive_menu.module \responsive_menu_cache_flush()
  5. 4.3.x responsive_menu.module \responsive_menu_cache_flush()

Implements hook_cache_flush().

Removes the css file on cache flush.

File

./responsive_menu.module, line 470
Contains procedural code.

Code

function responsive_menu_cache_flush() {
  $path = _get_breakpoint_css_filepath();

  // Ensure the directory exists, if not create it.
  if (file_exists($path . RESPONSIVE_MENU_BREAKPOINT_FILENAME)) {
    unlink($path . RESPONSIVE_MENU_BREAKPOINT_FILENAME);
  }
}