function webform_image_select_webform_libraries_info in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_image_select/webform_image_select.module \webform_image_select_webform_libraries_info()
Implements hook_webform_libraries_info().
File
- modules/
webform_image_select/ webform_image_select.module, line 30 - Provides a webform element for a selecting an image.
Code
function webform_image_select_webform_libraries_info() {
$libraries = [];
$libraries['jquery.image-picker'] = [
'title' => t('jQuery: Image Picker'),
'description' => t('A simple jQuery plugin that transforms a select element into a more user friendly graphical interface.'),
'notes' => t('Image Picker is used by the Image select element.'),
'homepage_url' => Url::fromUri('https://rvera.github.io/image-picker/'),
'download_url' => Url::fromUri('https://github.com/rvera/image-picker/archive/0.3.1.zip'),
'version' => '0.3.1',
'elements' => [
'webform_image_select',
],
'optional' => FALSE,
];
return $libraries;
}