Commit d1bdb024 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

[gh-417] Add video/mediahub mimetype to media_mediahub

Modeled after media_youtube http://drupal.org/node/1812976#comment-6657672
parent 4591c6a6
......@@ -99,6 +99,24 @@ function media_mediahub_media_parse($embed_code) {
return $handler->parse($embed_code);
}
/**
* Implements hook_file_mimetype_mapping_alter().
*
* Regster the video/mediahub mimetype.
*/
function media_mediahub_file_mimetype_mapping_alter(&$mapping) {
$mapping['mimetypes'][] = 'video/mediahub';
}
/*
* Implements hook_file_default_types_alter().
*
* Adds the video/mediahub fake mimetype to video files.
*/
function media_mediahub_file_default_types_alter(&$types) {
$types['video']->mimetypes[] = 'video/mediahub';
}
/**
* Implements hook_media_format_form_prepare_alter().
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment