Skip to content

Instantly share code, notes, and snippets.

@chris-jamieson
Last active August 29, 2015 14:04
Show Gist options
  • Save chris-jamieson/be548fb1957c0f14c347 to your computer and use it in GitHub Desktop.
Save chris-jamieson/be548fb1957c0f14c347 to your computer and use it in GitHub Desktop.
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']);
}
@chris-jamieson
Copy link
Author

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