You are here

function blazy_file_formatter_info_alter in Blazy 7

Implements hook_file_formatter_info_alter().

File

./blazy.module, line 49
Provides basic Blazy integration for lazy loading and multi-serving images.

Code

function blazy_file_formatter_info_alter(array &$info) {

  // Prevents complication at file entity display for now.
  foreach ([
    'file',
    'image',
  ] as $key) {
    if (isset($info['file_field_blazy_' . $key])) {
      unset($info['file_field_blazy_' . $key]);
    }
  }
}