You are here

function webform_shortcuts_webform_libraries_info in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_shortcuts/webform_shortcuts.module \webform_shortcuts_webform_libraries_info()

Implements hook_webform_libraries_info().

File

modules/webform_shortcuts/webform_shortcuts.module, line 15
Provides keyboard shortcuts to create and save webform elements.

Code

function webform_shortcuts_webform_libraries_info() {
  $libraries = [];
  $libraries['jquery.hotkeys'] = [
    'title' => t('jQuery.Hotkeys'),
    'description' => t('jQuery Hotkeys is a plug-in that lets you easily add and remove handlers for keyboard events anywhere in your code supporting almost any key combination.'),
    'notes' => t('jQuery Hotkeys is used by the form builder to quickly add and save elements.'),
    'homepage_url' => Url::fromUri('https://github.com/jeresig/jquery.hotkeys'),
    'download_url' => Url::fromUri('https://github.com/jeresig/jquery.hotkeys/archive/0.2.0.zip'),
    'version' => '0.2.0',
    'optional' => FALSE,
  ];
  return $libraries;
}