Created
June 28, 2012 16:16
-
-
Save davereid/3012246 to your computer and use it in GitHub Desktop.
Disable deprecated media library tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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