You are here

function common_test_library_alter in SimpleTest 7

Implementation of hook_library_alter().

File

tests/common_test.module, line 157
Helper module for the Common tests.

Code

function common_test_library_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',
      'form',
    );
  }
}