Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Custom video helper - hide the "Upload" option for media module
name = Custom video helper
description = Provides some custom hooks that help video uploads
core = 7.x
package = Media
<?php
/**
* Implements hook_form_FORM_ID_alter().
*/
function custom_video_helper_media_browser_plugins_alter(&$plugins){
unset($plugins['upload']);
}
@jamiesoncj

This comment has been minimized.

Copy link
Owner Author

commented Aug 6, 2014

This is just a fomalisation of the tip given on Dupal.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.