You are here

function _authcache_menu_substitute_menu_link in Authenticated User Page Caching (Authcache) 7.2

Helper function for substituting markup in main- and secondary menu.

1 call to _authcache_menu_substitute_menu_link()
authcache_menu_preprocess_page in modules/authcache_menu/authcache_menu.module
Implements hook_preprocess_page().

File

modules/authcache_menu/authcache_menu.module, line 284
Authcache support for menu, tabs and local actions.

Code

function _authcache_menu_substitute_menu_link(&$link) {
  if (!empty($link['authcache'])) {
    $link['html'] = TRUE;
    $link['title'] = theme('authcache_p13n_fragment', array(
      'fragment' => 'menu-item-title',
      'param' => $link['href'],
    ));
  }
  unset($link['authcache']);
}