You are here

function _slick_process_attributes in Slick Carousel 7.3

Process common attributes for slick.

4 calls to _slick_process_attributes()
template_process_slick in templates/slick.theme.inc
Process variables for theme_slick(), or slick.tpl.php.
template_process_slick_grid in templates/slick.theme.inc
Implements hook_process_slick_grid().
template_process_slick_slide in templates/slick.theme.inc
Process variables for theme_slick_slide() or slick-slide.tpl.php.
template_process_slick_wrapper in templates/slick.theme.inc
Process variables for theme_slick_wrapper(), or slick-wrapper.tpl.php.

File

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

Code

function _slick_process_attributes(&$variables) {

  // The template_process_BLAH is ditched at D8, including BLAH_array.
  // However we must stick to D7 convention FWIW, save for Slick 4.x maybe.
  foreach ([
    'attributes',
    'content_attributes',
  ] as $key) {
    $variables[$key] = empty($variables[$key . '_array']) ? '' : drupal_attributes($variables[$key . '_array']);
  }
}