You are here

function webform_icheck_webform_libraries_info in Webform 6.x

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

Implements hook_webform_libraries_info().

File

modules/webform_icheck/webform_icheck.module, line 15
Provides support for highly customizable checkboxes and radio buttons.

Code

function webform_icheck_webform_libraries_info() {
  $libraries = [];
  $libraries['jquery.icheck'] = [
    'title' => t('jQuery: iCheck'),
    'description' => t('Highly customizable checkboxes and radio buttons.'),
    'notes' => t('iCheck is used to optionally enhance checkboxes and radio buttons.'),
    'homepage_url' => Url::fromUri('http://icheck.fronteed.com/'),
    'download_url' => Url::fromUri('https://github.com/fronteed/icheck/archive/1.0.2.zip'),
    'version' => '1.0.2 ',
    'optional' => FALSE,
    'deprecated' => t('The iCheck 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/project/webform/issues/2931154',
    ]),
  ];
  return $libraries;
}