Last active
August 29, 2015 14:04
-
-
Save chris-jamieson/be548fb1957c0f14c347 to your computer and use it in GitHub Desktop.
Custom video helper - hide the "Upload" option for media module
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
name = Custom video helper | |
description = Provides some custom hooks that help video uploads | |
core = 7.x | |
package = Media |
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_form_FORM_ID_alter(). | |
*/ | |
function custom_video_helper_media_browser_plugins_alter(&$plugins){ | |
unset($plugins['upload']); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is just a fomalisation of the tip given on Dupal.org