Created
January 11, 2014 14:37
-
-
Save pvhee/8371637 to your computer and use it in GitHub Desktop.
Libraries patch to include scanning of Marzee Labs base profile libraries (mz)
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', 'mz') . "/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