You are here

function form_styler_libraries_info in jQuery form styler 7

Same name and namespace in other branches
  1. 7.2 form_styler.module \form_styler_libraries_info()

Implements hook_libraries_info().

File

./form_styler.module, line 13
Attach jQuery form styler plugin to selected forms.

Code

function form_styler_libraries_info() {
  $libraries['jquery_form_styler'] = array(
    'name' => 'jQuery form styler',
    'vendor url' => 'https://github.com/Dimox/jQueryFormStyler/',
    'download url' => 'https://github.com/Dimox/jQueryFormStyler/archive/1.7.8.zip',
    'version arguments' => array(
      'file' => 'jquery.formstyler.min.js',
      'pattern' => '/jQuery\\s+Form\\s+Styler\\s+v?([0-9\\.]+)/',
    ),
    'files' => array(
      'js' => array(
        'jquery.formstyler.min.js',
      ),
      'css' => array(
        'jquery.formstyler.css',
      ),
    ),
    'variants' => array(
      'minified' => array(
        'files' => array(
          'js' => array(
            'jquery.formstyler.min.js',
          ),
          'css' => array(
            'jquery.formstyler.css',
          ),
        ),
      ),
      'source' => array(
        'files' => array(
          'js' => array(
            'jquery.formstyler.js',
          ),
          'css' => array(
            'jquery.formstyler.css',
          ),
        ),
      ),
      'onlyjs' => array(
        'files' => array(
          'js' => array(
            'jquery.formstyler.min.js',
          ),
        ),
      ),
    ),
  );
  return $libraries;
}