You are here

function flexslider_fields_field_formatter_info_alter in Flex Slider 8.2

Implements hook_field_formatter_info_alter().

File

flexslider_fields/flexslider_fields.module, line 11
Adds fields integration with FlexSlider.

Code

function flexslider_fields_field_formatter_info_alter(array &$info) {

  // Remove responsive formatter if responsive image module is not installed.
  if (!\Drupal::moduleHandler()
    ->moduleExists('responsive_image') && isset($info['flexslider_responsive'])) {
    unset($info['flexslider_responsive']);
  }
}