function asset_embed_youtube_formatter_options in Asset 5
Same name and namespace in other branches
- 6 asset_embed/providers/youtube.inc \asset_embed_youtube_formatter_options()
File
- asset_embed/
providers/ youtube.inc, line 50
Code
function asset_embed_youtube_formatter_options($asset, $format) {
$form = array();
switch ($format) {
case 'thumbnail':
$form['thumbnail'] = array(
'#type' => 'radios',
'#title' => t('Select an image'),
'#options' => array(
1 => theme('asset_embed_youtube_thumbnail', $asset, array(
'thumbnail' => 1,
)),
2 => theme('asset_embed_youtube_thumbnail', $asset, array(
'thumbnail' => 2,
)),
3 => theme('asset_embed_youtube_thumbnail', $asset, array(
'thumbnail' => 3,
)),
),
'#default_value' => 1,
'#weight' => -1,
);
break;
}
return $form;
}