You are here

function footermap_menu_link_alter in footermap: a footer site map 6

File

./footermap.module, line 122

Code

function footermap_menu_link_alter(&$item, $menu) {
  if (variable_get('footer_cache', 0) == 0) {
    return;
  }
  $footercache = cache_get('footermap', 'cache');
  $mlidregex = '/' . $item['mlid'] . '/';
  if (preg_match($mlidregex, $footercache->data) == 0) {
    return;
  }

  // okay let's clear cache
  cache_clear_all('footermap', 'cache');
}