You are here

function _slick_preprocess_container in Slick Carousel 7.3

Prepares common variables for slick container.

3 calls to _slick_preprocess_container()
template_preprocess_slick in templates/slick.theme.inc
Preprocess variables for theme_slick().
template_preprocess_slick_grid in templates/slick.theme.inc
Prepares variables for theme_slick_grid().
template_preprocess_slick_wrapper in templates/slick.theme.inc
Preprocess variables for theme_slick_wrapper(), or slick-wrapper.tpl.php.

File

templates/slick.theme.inc, line 41
Hooks and preprocess functions for the Slick module.

Code

function _slick_preprocess_container(&$variables) {
  _slick_preprocess_attributes($variables);
  foreach ([
    'items',
    'settings',
  ] as $key) {
    $variables[$key] = isset($variables['element']["#{$key}"]) ? $variables['element']["#{$key}"] : [];
  }
}