public static function Preset::getDefaultPresets in Video 7.2
Returns the default presets.
5 calls to Preset::getDefaultPresets()
- Preset::deletePreset in includes/
Preset.inc - Deletes a preset from the database.
- Preset::getAllPresets in includes/
Preset.inc - Gets a list of all presets.
- Preset::getPreset in includes/
Preset.inc - Retrieves a single preset.
- video_preset_get_default_presets in modules/
video_ui/ video.preset.inc - Returns the default presets.
- video_preset_name_exists in modules/
video_ui/ video.preset.inc - Checks to see if another preset is already taken.
File
- includes/
Preset.inc, line 64 - Class file used to store video presets on the video.
Class
- Preset
- @file Class file used to store video presets on the video.
Code
public static function getDefaultPresets() {
$presets = array();
foreach (module_implements('video_default_presets') as $module) {
$function = $module . '_video_default_presets';
if (function_exists($function)) {
$result = $function();
if (isset($result) && is_array($result)) {
foreach ($result as $preset) {
$preset['module'] = $module;
$presets[$preset['name']] = $preset;
}
}
}
}
drupal_alter('video_default_presets', $presets);
return $presets;
}