Closed (fixed)
Project:
CDN2 Video
Version:
6.x-1.1
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2009 at 00:06 UTC
Updated:
7 Apr 2009 at 16:01 UTC
Hello, is it possible to remove the link "download raw video file"? Part of the appeal of this service is to have an added measure of content security.
Comments
Comment #1
kylebrowning commentedYou can override the function theme_cdn2_video_asset_metadata in your template.php.
Copy the original function, and paste it inside function PHPTEMPLATE_cdn2_video_asset_metadata
Comment #2
kylebrowning commentedComment #3
shaundychkoWow Kyle, thanks for such a quick reply. If you don't mind, could you please be very explicit with your instructions? I am a beginning user, and I'm not sure where to find the PHPTEMPLATE_cdn2_video_asset_metadata function. When you mention the template.php file, I presume you mean the one in /public_html/themes/MyTemplate? Where can I find the function theme_cdn2_video_asset_metadata?
Also, just to confirm, is it true that, after the download link is removed, that the only way a user could possibly copy the video is by using a screen capture program?
Thank you very much for the help!
Comment #4
shaundychkoComment #5
kylebrowning commentedTypically, themes are installed in /WEBROOT/sites/all/themes or /WEBROOT>/sites/SITENAME/themes. This allows for an easy upgrade of Drupal from one version to the next, as you can rewrite everything in drupal core over itself, except obviously, the sites folder.
Youll want to paste this in your template.php
Basically I commented out that line, and with this override, you can safely update cdn2.module in the future.
Comment #6
shaundychkoThank you Kyle, this works great.