You are here

function flexslider_libraries_info in Flex Slider 8.2

Same name and namespace in other branches
  1. 7.2 flexslider.module \flexslider_libraries_info()

Implements hook_libraries_info().

@TODO: Remove this once 8.9 is the minimal core version and Libraries is no longer required.

File

./flexslider.module, line 17
A light-weight, customizable image gallery plugin for Drupal based on jQuery.

Code

function flexslider_libraries_info() {
  $libraries['flexslider'] = [
    'name' => 'FlexSlider',
    'vendor url' => 'http://www.woothemes.com/flexslider/',
    'download url' => 'https://github.com/woothemes/FlexSlider',
    'version arguments' => [
      'file' => 'jquery.flexslider-min.js',
      // e.g. jQuery FlexSlider v2.1.
      'pattern' => '/jQuery FlexSlider v(\\d+\\.+\\d+(\\.+\\d+)?)/',
      'lines' => 2,
    ],
    'files' => [
      'js' => [
        'jquery.flexslider-min.js',
      ],
      'css' => [
        'flexslider.css',
      ],
    ],
  ];
  return $libraries;
}