You are here

function clientside_validation_libraries_info in Clientside Validation 7.2

Implements hook_libraries_info().

File

./clientside_validation.module, line 86
Add client side validation to forms.

Code

function clientside_validation_libraries_info() {
  $libraries = array();
  $libraries['clientside.validation'] = array(
    'title' => 'Clientside Validation',
    'vendor url' => 'http://drupal.org/project/clientside_validation',
    'version' => '7.x-2.x',
    'library path' => drupal_get_path('module', 'clientside_validation') . '/js',
    'files' => array(
      'js' => array(
        'clientside_validation.ie8.js' => array(
          'scope' => 'footer',
          'weight' => 19,
          'browsers' => array(
            'IE' => 'lt IE 9',
            '!IE' => FALSE,
          ),
        ),
        'clientside_validation.js' => array(
          'scope' => 'footer',
          'weight' => 20,
        ),
      ),
    ),
    'dependencies' => array(
      'jquery.validate',
    ),
  );
  $libraries['jquery.validate'] = array(
    'name' => 'jQuery Validate',
    'vendor url' => 'http://jqueryvalidation.org/',
    'download url' => 'https://github.com/jzaefferer/jquery-validation/releases',
    'files' => array(
      'js' => array(
        'dist/jquery.validate.js',
        'dist/additional-methods.js',
      ),
    ),
    'version arguments' => array(
      'file' => 'dist/jquery.validate.js',
      'pattern' => '/([0-9\\.-]+)/',
      'lines' => 4,
    ),
    'callbacks' => array(
      'pre-load' => array(
        'clientside_validation_libraries_add_locale',
      ),
    ),
  );
  return $libraries;
}