You are here

function youtube_size_options in YouTube Field 7

Same name and namespace in other branches
  1. 8 youtube.module \youtube_size_options()

Returns a list of YouTube video size options.

Return value

array An array of options, keyed by machine name with human readable values.

2 calls to youtube_size_options()
youtube_field_formatter_settings_form in ./youtube.module
Implements hook_field_formatter_settings_form().
youtube_field_formatter_settings_summary in ./youtube.module
Implements hook_field_formatter_settings_summary().

File

./youtube.inc, line 35
YouTube field helper functions.

Code

function youtube_size_options() {
  return array(
    '420x315' => '450px by 315px',
    '480x360' => '480px by 360px',
    '640x480' => '640px by 480px',
    '960x720' => '960px by 720px',
    'responsive' => 'responsive (full-width of container)',
    'custom' => 'custom',
  );
}