You are here

function flickity_form_flickity_group_form_alter in Flickity Carousel 8.2

Same name and namespace in other branches
  1. 8 flickity.module \flickity_form_flickity_group_form_alter()
  2. 3.0.x flickity.module \flickity_form_flickity_group_form_alter()

Implements hook_form_alter().

File

./flickity.module, line 113
flickity.module

Code

function flickity_form_flickity_group_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state) {
  if ($form['id']['#default_value'] == 'default_group') {
    hide($form['actions']['delete']);
  }
}