function slick_load_media_settings in Slick Carousel 7.2
Returns an array of {file_display} settings for the file type and view mode.
It is a clone of file_displays_load() to load only the known/supported ones.
1 call to slick_load_media_settings()
- slick_extract_media_data in includes/
slick.extras.inc - Gets a media URL from the rendered iframe already containing all the params.
File
- includes/
slick.extras.inc, line 180 - Contains optional functions called by frontend Media, or Field collection.
Code
function slick_load_media_settings($type, $view_mode, $formatter) {
ctools_include('export');
$name = $type . '__' . $view_mode . '__' . $formatter;
$displays = ctools_export_load_object('file_display', 'names', array(
$name,
));
return $displays[$name]->settings;
}