function responsive_menu_cache_flush in Responsive and off-canvas menu 4.3.x
Same name and namespace in other branches
- 8.3 responsive_menu.module \responsive_menu_cache_flush()
- 8.2 responsive_menu.module \responsive_menu_cache_flush()
- 4.4.x responsive_menu.module \responsive_menu_cache_flush()
- 4.0.x responsive_menu.module \responsive_menu_cache_flush()
- 4.1.x responsive_menu.module \responsive_menu_cache_flush()
Implements hook_cache_flush().
Removes the css file on cache flush.
File
- ./
responsive_menu.module, line 475 - 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);
}
}