function webform_options_custom_webform_libraries_info in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_options_custom/webform_options_custom.module \webform_options_custom_webform_libraries_info()
Implements hook_webform_libraries_info().
File
- modules/
webform_options_custom/ webform_options_custom.module, line 41 - Provides a custom options element.
Code
function webform_options_custom_webform_libraries_info() {
$libraries = [];
$libraries['svg-pan-zoom'] = [
'title' => t('SVG Pan & Zoom'),
'description' => t('Simple pan/zoom solution for SVGs in HTML.'),
'notes' => t('Svg-pan-zoom is used by custom options elements.'),
'homepage_url' => Url::fromUri('https://github.com/ariutta/svg-pan-zoom'),
'download_url' => Url::fromUri('https://github.com/ariutta/svg-pan-zoom/archive/3.6.1.zip'),
'version' => '3.6.1',
'optional' => FALSE,
];
return $libraries;
}