You are here

function slick_fields_update_7301 in Slick Carousel 7.3

Update and replace the old Slick 2.x entity formatters to Slick 3.x.

File

slick_fields/slick_fields.install, line 63
Installation actions for Slick fields.

Code

function slick_fields_update_7301() {
  foreach ([
    'field_collection',
    'paragraphs',
  ] as $key) {
    if (module_exists($key)) {
      _slick_fields_update_formatter($key);
    }
  }

  // Clear caches that might contain stale formatter displays.
  cache_clear_all('*', 'cache_block', TRUE);
  cache_clear_all('*', 'cache_page', TRUE);
}