Last active
August 29, 2015 14:22
-
-
Save freshjones/e60235983ce421c82eca to your computer and use it in GitHub Desktop.
Drupal Allow OG Menu Single for Superfish Module
This file contains hidden or 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/superfish.module b/superfish.module | |
index f994eaa..d884ed2 100644 | |
--- a/superfish.module | |
+++ b/superfish.module | |
@@ -1753,6 +1753,18 @@ function theme_superfish($variables) { | |
$menu = i18n_menu_localize_tree($menu); | |
} | |
+ if(module_exists('og')) | |
+ { | |
+ | |
+ $og = og_context(); | |
+ | |
+ if($og) | |
+ { | |
+ $mlid = og_menu_single_get_active_plid(); | |
+ } | |
+ | |
+ } | |
+ | |
// For custom $menus and menus built all the way from the top-level we | |
// don't need to "create" the specific sub-menu and we need to get the title | |
// from the $menu_name since there is no "parent item" array. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment