1 common_test.module common_test_library_info_alter(&$libraries, $module)

Implements hook_library_info_alter().

File

core/modules/simpletest/tests/common_test.module, line 268
Helper module for the Common tests.

Code

function common_test_library_info_alter(&$libraries, $module) {
  if ($module == 'system' && isset($libraries['farbtastic'])) {
    // Change the title of Farbtastic to "Farbtastic: Altered Library".
    $libraries['farbtastic']['title'] = 'Farbtastic: Altered Library';
    // Make Farbtastic depend on jQuery Form to test library dependencies.
    $libraries['farbtastic']['dependencies'][] = array('system', 'jquery.form');
  }
}