You are here

public function video_preset::properties in Video 7

Same name and namespace in other branches
  1. 6.4 includes/preset.inc \video_preset::properties()

Get the preset properties

Return value

array $properties

File

includes/preset.inc, line 67

Class

video_preset

Code

public function properties() {

  // adding modules/video_ui to load this file even if UI module is disabled
  module_load_include('inc', 'video', 'modules/video_ui/video.preset');
  $presets = array();
  $preset = $this->preset;
  foreach ($preset as $preset_name) {

    // skip selecting disabled presets 0=>0
    if (!empty($preset_name)) {
      $presets[$preset_name] = video_get_preset($preset_name);
    }
  }
  return $presets;
}