You are here

function _video_get_resolution_options in Video 6.2

Same name and namespace in other branches
  1. 5 video.module \_video_get_resolution_options()
  2. 6 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 1492
video.module

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++;
  }
  if (user_access('manually set video resolution')) {

    // to manually insert resolution values
    $options[VIDEO_MANUALLY_SET_VIDEO_RESOLUTION_SELECT_ID] = t("manually set ");
  }
  return $options;
}