function menu_trail_by_path_fix_cache_after_upgrade in Menu Trail By Path 7.3
Prevent fatal error after upgrade
Deprecated
(to be removed in 7.x-4.x)
See also
https://www.drupal.org/node/2793777
1 call to menu_trail_by_path_fix_cache_after_upgrade()
File
- ./
menu_trail_by_path.module, line 51 - Expand menu items and set active-trail according to current path.
Code
function menu_trail_by_path_fix_cache_after_upgrade() {
if (!class_exists('MenutrailbypathUrlHelper') || !class_exists('MenutrailbypathPathHelper') || !class_exists('MenutrailbypathActivetrail') || !class_exists('MenutrailbypathUsortMenulinks')) {
watchdog('menu_trail_by_path', 'Fixing invalid cache, you probably forgot to clear the cache after menu_trail_by_path upgrade..', array(), WATCHDOG_ERROR);
drupal_flush_all_caches();
}
}