function _media_23video_get_settings in Media 23video 7
Get default values for formatter form elements.
Parameters
string $type: Formatter type. Can be the "video", "image" or "titles".
Return value
array Default settings for formatter.
1 call to _media_23video_get_settings()
- media_23video_file_formatter_info in ./
media_23video.module - Implements hook_file_formatter_info().
File
- ./
media_23video.module, line 226 - 23Video service for Media.
Code
function _media_23video_get_settings($type) {
$settings = array();
foreach (_media_23video_settings_form($type) as $name => $field) {
$settings[$name] = $field['#default_value'];
}
return $settings;
}