You are here

function template_process_slick_grid in Slick Carousel 7.3

Same name and namespace in other branches
  1. 7.2 templates/slick.theme.inc \template_process_slick_grid()

Implements hook_process_slick_grid().

This is BC for Slick 2.x which had slick-grid.tpl.php, but no longer at 3.x. As a module .tpl may be copied into themes, we play safe. At Slick 3.x, you can override theme_slick_grid() instead, and remove slick-grid.tpl.php.

@todo to be removed post full release as this is no longer needed.

File

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

Code

function template_process_slick_grid(&$variables) {
  _slick_process_attributes($variables);
  foreach ($variables['items'] as $delta => $item) {
    $variables['item_attributes'][$delta] = empty($variables['item_attributes_array'][$delta]) ? '' : drupal_attributes($variables['item_attributes_array'][$delta]);
  }
}