You are here

function webform_image_select_test_webform_image_select_images_animals_alter in Webform 8.5

Same name and namespace in other branches
  1. 6.x modules/webform_image_select/tests/modules/webform_image_select_test/webform_image_select_test.module \webform_image_select_test_webform_image_select_images_animals_alter()

Implements hook_webform_image_select_images_WEBFORM_IMAGE_SELECT_IMAGES_ID_alter().

File

modules/webform_image_select/tests/modules/webform_image_select_test/webform_image_select_test.module, line 13
Support module for webform that provides image select element working examples.

Code

function webform_image_select_test_webform_image_select_images_animals_alter(array &$images, array &$element) {
  if ($kittens = WebformImageSelectImages::load('kittens')) {
    $images += $kittens
      ->getImages();
  }
}