diff --git a/oembed.file_default_displays.inc b/oembed.file_default_displays.inc new file mode 100644 index 0000000..33d6951 --- /dev/null +++ b/oembed.file_default_displays.inc @@ -0,0 +1,159 @@ +api_version = 1; + $file_display->name = 'audio__default__oembed'; + $file_display->weight = 0; + $file_display->status = TRUE; + $file_display->settings = array( + 'width' => '560', + 'height' => '340', + 'wmode' => '', + ); + $file_displays['audio__default__oembed'] = $file_display; + + $file_display = new stdClass(); + $file_display->api_version = 1; + $file_display->name = 'audio__preview__oembed_thumbnail'; + $file_display->weight = 0; + $file_display->status = TRUE; + $file_display->settings = array( + 'width' => '100', + 'height' => '100', + ); + $file_displays['audio__preview__oembed_thumbnail'] = $file_display; + + $file_display = new stdClass(); + $file_display->api_version = 1; + $file_display->name = 'image__teaser__oembed'; + $file_display->weight = 0; + $file_display->status = TRUE; + $file_display->settings = array( + 'width' => '280', + 'height' => '170', + 'wmode' => '', + ); + $file_displays['audio__teaser__oembed'] = $file_display; + + // Document. + $file_display = new stdClass(); + $file_display->api_version = 1; + $file_display->name = 'document__default__oembed'; + $file_display->weight = 0; + $file_display->status = TRUE; + $file_display->settings = array( + 'width' => '560', + 'height' => '340', + 'wmode' => '', + ); + $file_displays['document__default__oembed'] = $file_display; + + $file_display = new stdClass(); + $file_display->api_version = 1; + $file_display->name = 'document__preview__oembed_thumbnail'; + $file_display->weight = 0; + $file_display->status = TRUE; + $file_display->settings = array( + 'width' => '100', + 'height' => '100', + ); + $file_displays['document__preview__oembed_thumbnail'] = $file_display; + + $file_display = new stdClass(); + $file_display->api_version = 1; + $file_display->name = 'document__teaser__oembed'; + $file_display->weight = 0; + $file_display->status = TRUE; + $file_display->settings = array( + 'width' => '280', + 'height' => '170', + 'wmode' => '', + ); + $file_displays['document__teaser__oembed'] = $file_display; + + // Image. + $file_display = new stdClass(); + $file_display->api_version = 1; + $file_display->name = 'image__default__oembed'; + $file_display->weight = 0; + $file_display->status = TRUE; + $file_display->settings = array( + 'width' => '560', + 'height' => '340', + 'wmode' => '', + ); + $file_displays['image__default__oembed'] = $file_display; + + $file_display = new stdClass(); + $file_display->api_version = 1; + $file_display->name = 'image__preview__oembed_thumbnail'; + $file_display->weight = 0; + $file_display->status = TRUE; + $file_display->settings = array( + 'width' => '100', + 'height' => '100', + ); + $file_displays['image__preview__oembed_thumbnail'] = $file_display; + + $file_display = new stdClass(); + $file_display->api_version = 1; + $file_display->name = 'image__teaser__oembed'; + $file_display->weight = 0; + $file_display->status = TRUE; + $file_display->settings = array( + 'width' => '280', + 'height' => '170', + 'wmode' => '', + ); + $file_displays['image__teaser__oembed'] = $file_display; + + // Video. + $file_display = new stdClass(); + $file_display->api_version = 1; + $file_display->name = 'video__default__oembed'; + $file_display->weight = 0; + $file_display->status = TRUE; + $file_display->settings = array( + 'width' => '560', + 'height' => '340', + 'wmode' => '', + ); + $file_displays['video__default__oembed'] = $file_display; + + $file_display = new stdClass(); + $file_display->api_version = 1; + $file_display->name = 'video__preview__oembed_thumbnail'; + $file_display->weight = 0; + $file_display->status = TRUE; + $file_display->settings = array( + 'width' => '100', + 'height' => '100', + ); + $file_displays['video__preview__oembed_thumbnail'] = $file_display; + + $file_display = new stdClass(); + $file_display->api_version = 1; + $file_display->name = 'video__teaser__oembed'; + $file_display->weight = 0; + $file_display->status = TRUE; + $file_display->settings = array( + 'width' => '280', + 'height' => '170', + 'wmode' => '', + ); + $file_displays['video__teaser__oembed'] = $file_display; + + return $file_displays; +} diff --git a/oembed.module b/oembed.module index 3720f21..2e07ca0 100644 --- a/oembed.module +++ b/oembed.module @@ -553,6 +553,9 @@ function oembed_ctools_plugin_api($module, $api) { if ($module == 'file_entity' && $api == 'file_type') { return array('version' => 1); } + if ($module == 'file_entity' && $api == 'file_default_displays') { + return array('version' => 1); + } } /**