You are here

function media_menu_local_actions_alter in D7 Media 8

Implements hook_menu_local_actions_alter().

Adds the add media button from media_entity on library pages.

File

./media.module, line 62
Contains media.module.

Code

function media_menu_local_actions_alter(&$local_actions) {
  $local_actions['media.add']['appears_on'][] = 'view.media_library.user_media_library';
  $local_actions['media.add']['appears_on'][] = 'view.media_library.global_media_library_page';
}