You are here

function _video_get_resolution_options in Video 5

Same name and namespace in other branches
  1. 6 video.module \_video_get_resolution_options()
  2. 6.2 video.module \_video_get_resolution_options()

Get the resolution options array to use on the video form

1 call to _video_get_resolution_options()
video_form in ./video.module
Hook, displays the contents of the node form page for creating and editing nodes.

File

./video.module, line 1340
Display video in Quicktime MOV, Realmedia RM, Flash FLV & SWF, or Windows Media WMV formats.

Code

function _video_get_resolution_options() {
  $options = array();
  $i = 1;
  while ($i <= 4) {
    if (variable_get('video_resolution_' . $i . '_value', '') != '') {

      // only if we have a value
      $options[$i] = variable_get('video_resolution_' . $i . '_name', '');
    }
    $i++;
  }
  return $options;
}