Created
November 4, 2013 19:35
-
-
Save pvhee/7307987 to your computer and use it in GitHub Desktop.
Libraries patch to include scanning of Foundation base profile libraries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/libraries.module b/libraries.module | |
index 687fa29..782792b 100644 | |
--- a/libraries.module | |
+++ b/libraries.module | |
@@ -82,6 +82,9 @@ function libraries_get_libraries() { | |
// Always search sites/all/libraries. | |
$searchdir[] = 'sites/all/libraries'; | |
+ // Patch until we sort out https://drupal.org/node/1811486 and drupal_get_profiles actually exists. Profile inheritance is still relatively new, but we need this new, hence the hardcoded hack. Expected to be removed in the next cycle of D7 | |
+ $searchdir[] = drupal_get_path('profile', 'foundation') . "/libraries"; | |
+ | |
// Also search sites/<domain>/*. | |
$searchdir[] = "$config/libraries"; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment