template.php 913 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * @file
  4. * Libraries test theme.
  5. */
  6. /**
  7. * Implements hook_libraries_info().
  8. */
  9. function libraries_test_theme_libraries_info() {
  10. $libraries['example_theme'] = array(
  11. 'name' => 'Example theme',
  12. 'theme_altered' => FALSE,
  13. );
  14. $libraries['example_theme_integration_files'] = array(
  15. 'name' => 'Example theme integration file',
  16. 'library path' => drupal_get_path('module', 'libraries') . '/tests/libraries/example',
  17. 'version' => '1',
  18. 'integration files' => array(
  19. 'libraries_test_theme' => array(
  20. 'js' => array('libraries_test_theme.js'),
  21. 'css' => array('libraries_test_theme.css'),
  22. 'php' => array('libraries_test_theme.inc'),
  23. ),
  24. ),
  25. );
  26. return $libraries;
  27. }
  28. /**
  29. * Implements hook_libraries_info_alter().
  30. */
  31. function libraries_test_theme_libraries_info_alter(&$libraries) {
  32. $libraries['example_theme']['theme_altered'] = TRUE;
  33. }