Skip to content

Instantly share code, notes, and snippets.

@davereid
Created June 28, 2012 16:16
Show Gist options
  • Save davereid/3012246 to your computer and use it in GitHub Desktop.
Save davereid/3012246 to your computer and use it in GitHub Desktop.
Disable deprecated media library tab
<?php
/**
* Implements hook_media_browser_plugin_info_alter().
*/
function custom_media_browser_plugin_info_alter(&$info) {
unset($info['library']);
}
/**
* Implements hook_views_default_views_alter().
*/
function custom_views_default_views_alter(&$views) {
$views['media_default']->display['media_browser_1']->display_options['title'] = t('Library');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment