You are here

function hook_flickity_group_settings_alter in Flickity Carousel 3.0.x

Alter the Flickity Group settings.

This hook is called after the Flickity Group entity is loaded and allows to alter the settings that controls the Flickity Carousel.

This hook can be called ty themes.

Parameters

array &$group: The group settings, that are structured as follow:

  • id: The group ID.
  • label: The group label.
  • settings: The settings that are passed to the Flickity JS script.

See also

flickity_settings()

Related topics

1 invocation of hook_flickity_group_settings_alter()
flickity_settings in ./flickity.module
Returns Flickity settings group to initialize.

File

./flickity.api.php, line 47
Hooks provided by the Flickity module.

Code

function hook_flickity_group_settings_alter(array &$group) {
  if ($group['id'] === 'my_group_id') {
    $group['settings']['arrowShape'] = 'M 0,50 L 60,00 L 50,30 L 80,30 L 80,70 L 50,70 L 60,100 Z';
  }
}