function theme_video_format_play in Video 6.2
Same name and namespace in other branches
- 5 video.module \theme_video_format_play()
- 6 video.module \theme_video_format_play()
Cut down on redundant link text
Parameters
$url: string URL to link to
$title: string title of link to show on mouseover
$link_text: string text of the link
Return value
string HTML link
9 theme calls to theme_video_format_play()
- theme_video_google_play in types/
video_google/ video_google.module - Play videos hosted on video.google.com Allows users to host videos on video.google.com and then use the video ID to post it in the module.
- theme_video_play_dcr in includes/
common.inc - Play Director .dcr/.dir files.
- theme_video_play_divx in includes/
common.inc - Play videos from in DivX format
- theme_video_play_flash in includes/
common.inc - Play videos from in FLV Flash video format
- theme_video_play_ogg_theora in includes/
common.inc - Play Ogg Theora videos with Cortado Applet
File
- ./
video.module, line 1224 - video.module
Code
function theme_video_format_play($output, $url, $title, $link_text) {
$output = "\n<div id=\"video-player\">\n" . $output;
if (variable_get('video_show_help_text', TRUE)) {
$output .= "<p>\n" . t('Problems viewing videos?');
$output .= "<br />\n";
$output .= l($link_text, $url, array(
'attributes' => array(
'title' => $title,
),
'absolute' => TRUE,
));
$output .= "\n</p> \n ";
}
return $output . "</div>\n";
}