function youtube_size_options in YouTube Field 8
Same name and namespace in other branches
- 7 youtube.inc \youtube_size_options()
Returns a list of standard YouTube video sizes.
1 call to youtube_size_options()
- YouTubeFormatter::settingsForm in src/
Plugin/ Field/ FieldFormatter/ YouTubeFormatter.php - Returns a form to configure settings for the formatter.
File
- ./
youtube.module, line 58 - Youtube field module adds a field for YouTube videos.
Code
function youtube_size_options() {
return [
'450x315' => '450px by 315px',
'480x360' => '480px by 360px',
'640x480' => '640px by 480px',
'960x720' => '960px by 720px',
'responsive' => 'responsive (full-width of container)',
'custom' => 'custom',
];
}