function _video_get_resolution_options in Video 6
Same name and namespace in other branches
- 5 video.module \_video_get_resolution_options()
- 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 1358 - 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++;
}
return $options;
}