function common_test_library_info

Implements hook_library_info().

Adds Farbtastic in a different version.

File

drupal/core/modules/system/tests/modules/common_test/common_test.module, line 280
Helper module for the Common tests.

Code

function common_test_library_info() {
  $libraries['jquery.farbtastic'] = array(
    'title' => 'Custom Farbtastic Library',
    'website' => 'http://code.google.com/p/farbtastic/',
    'version' => '5.3',
    'js' => array(
      'core/misc/farbtastic/farbtastic.js' => array(),
    ),
    'css' => array(
      'core/misc/farbtastic/farbtastic.css' => array(),
    ),
    'dependencies' => array(
      array(
        'system',
        'jquery',
      ),
    ),
  );

  // Nominate a library using the shorthand format, where no options are given,
  // just the file name.
  $libraries['shorthand.plugin'] = array(
    'title' => 'Shorthand Plugin',
    'website' => 'http://www.example.com/',
    'version' => '0.8.3.37',
    'js' => array(
      // Here we attach the JavaScript file using the shorthand format, only
      // the file name is given, no options.
      drupal_get_path('module', 'common_test') . '/js/shorthand.js',
    ),
    'dependencies' => array(
      array(
        'system',
        'jquery',
      ),
    ),
  );
  return $libraries;
}