Skip to content

Instantly share code, notes, and snippets.

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