function webform_location_geocomplete_webform_libraries_info in Webform 6.x
Same name and namespace in other branches
- 8.5 modules/webform_location_geocomplete/webform_location_geocomplete.module \webform_location_geocomplete_webform_libraries_info()
Implements hook_webform_libraries_info().
File
- modules/
webform_location_geocomplete/ webform_location_geocomplete.module, line 15 - Provides a form element to collect valid location information using Google Maps API's Geocoding and Places Autocomplete.
Code
function webform_location_geocomplete_webform_libraries_info() {
$libraries = [];
$libraries['jquery.geocomplete'] = [
'title' => t('jQuery: Geocoding and Places Autocomplete Plugin'),
'description' => t("Geocomple is an advanced jQuery plugin that wraps the Google Maps API's Geocoding and Places Autocomplete services."),
'notes' => t('Geocomplete is used by the location element.'),
'homepage_url' => Url::fromUri('http://ubilabs.github.io/geocomplete/'),
'download_url' => Url::fromUri('https://github.com/ubilabs/geocomplete/archive/1.7.0.zip'),
'version' => '1.7.0',
'elements' => [
'webform_location_geocomplete',
],
'optional' => FALSE,
'deprecated' => t('The jQuery: Geocoding and Places Autocomplete Plugin library is not being maintained. It has been <a href=":href">deprecated</a> and will be removed in Webform 7.0.', [
':href' => 'https://www.drupal.org/node/2991275',
]),
];
return $libraries;
}