Skip to content

Instantly share code, notes, and snippets.

@pvhee
Created November 4, 2013 19:35
Show Gist options
  • Save pvhee/7307987 to your computer and use it in GitHub Desktop.
Save pvhee/7307987 to your computer and use it in GitHub Desktop.
Libraries patch to include scanning of Foundation base profile libraries
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