You are here

function menu_minipanels_theme_registry_alter in Menu Minipanels 7.2

Same name and namespace in other branches
  1. 6 menu_minipanels.module \menu_minipanels_theme_registry_alter()
  2. 7 menu_minipanels.module \menu_minipanels_theme_registry_alter()

Implements hook_theme_registry_alter().

Copy the original `link` theme function into our namespace, then override the original function with our version. The original will be invoked by our version.

File

./menu_minipanels.module, line 195
Menu MiniPanels provides a flexible "mega menu" solution for Drupal by allowing a minipanel to be associated with a Drupal menu item. When that menu item is hovered, the minipanel content will be shown using standard CSS :hover techniques…

Code

function menu_minipanels_theme_registry_alter(&$vars) {
  $vars['menu_minipanels_theme_link_default'] = $vars['link'];
  $vars['link']['function'] = 'menu_minipanels_theme_link';
}