function shadowbox_media_support in Shadowbox 6.3
2 calls to shadowbox_media_support()
- shadowbox_construct_header in ./
shadowbox.module - Build the Shadowbox header by adding the necessary CSS and JS files.
- shadowbox_get_settings in ./
shadowbox.module - Construct the JS settings array.
File
- ./
shadowbox.module, line 407 - Shadowbox, a JavaScript media viewer application for displaying content in a modal dialogue.
Code
function shadowbox_media_support($type) {
$types = variable_get("shadowbox_supported_{$type}", shadowbox_get_types($type));
if (is_null($types)) {
$types = array();
}
$types = array_filter($types);
return !empty($types);
}