You are here

function menu_views_theme_registry_alter in Menu Views 7

Same name and namespace in other branches
  1. 8.3 menu_views.module \menu_views_theme_registry_alter()
  2. 7.2 menu_views.module \menu_views_theme_registry_alter()

Implements hook_theme_registry_alter(). Intercepts hook_link().

File

./menu_views.module, line 54
Module to enable adding a view menu item.

Code

function menu_views_theme_registry_alter(&$registry) {

  // Save previous value from registry in case another module/theme overwrites link
  $registry['menu_views_link_default'] = $registry['link'];
  $registry['link']['function'] = 'menu_views_link';
}