function _slick_preprocess_attributes in Slick Carousel 7.3
Preprocess common attributes for slick.
2 calls to _slick_preprocess_attributes()
- _slick_preprocess_container in templates/
slick.theme.inc - Prepares common variables for slick container.
- _slick_preprocess_item in templates/
slick.theme.inc - Prepares common variables for slick item.
File
- templates/
slick.theme.inc, line 21 - Hooks and preprocess functions for the Slick module.
Code
function _slick_preprocess_attributes(&$variables) {
foreach ([
'attributes',
'content_attributes',
] as $key) {
$variables[$key . '_array'] = isset($variables['element']["#{$key}"]) ? $variables['element']["#{$key}"] : [];
}
}