function brightcove_media_file_type_alter in Brightcove Video Connect 7.4
Same name and namespace in other branches
- 7.7 brightcove_media/brightcove_media.module \brightcove_media_file_type_alter()
- 7.6 brightcove_media/brightcove_media.module \brightcove_media_file_type_alter()
Implements hook_file_type_alter().
File
- brightcove_media/
brightcove_media.module, line 963 - This module provide the hook implementations for the integration with Media module.
Code
function brightcove_media_file_type_alter(&$types, $file) {
if (strpos($file->filemime, 'brightcove')) {
$types = array(
'video',
);
}
}