You are here

function oembed_file_formatter_info_alter in oEmbed 8

Same name and namespace in other branches
  1. 7 oembed.file.inc \oembed_file_formatter_info_alter()
  2. 7.0 oembed.file.inc \oembed_file_formatter_info_alter()

Implements hook_file_formatter_info_alter().

File

./oembed.file.inc, line 31

Code

function oembed_file_formatter_info_alter(&$info) {
  if (isset($info['file_image'])) {
    $info['oembed_image'] = array(
      'label' => t('oEmbed image'),
      'view callback' => 'oembed_remote_file_formatter_view',
      'description' => t('oEmbed photo or thumbnail is saved to local filesystem and transformed by image styles.'),
      'hidden' => FALSE,
      'mime types' => array(
        'audio/oembed',
        'image/oembed',
        'text/oembed',
        'video/oembed',
      ),
    ) + $info['file_image'];
  }
}