You are here

function oembed_file_formatter_info_alter in oEmbed 7.0

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

Implements hook_file_formatter_info_alter().

File

./oembed.file.inc, line 27

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.'),
    ) + $info['file_image'];
  }
}