function media_menu_links_discovered_alter in D7 Media 8
Implements hook_menu_links_discovered_alter().
File
- ./
media.module, line 78 - Contains media.module.
Code
function media_menu_links_discovered_alter(&$links) {
// Media entity module provides a default view which we disable. Since it also
// provides a link entry for it we need to update the route there to point to
// the media library we provide.
$links['entity.media.collection']['route_name'] = 'view.media_library.global_media_library_page';
}