Skip to content

Instantly share code, notes, and snippets.

@freshjones
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freshjones/e60235983ce421c82eca to your computer and use it in GitHub Desktop.
Save freshjones/e60235983ce421c82eca to your computer and use it in GitHub Desktop.
Drupal Allow OG Menu Single for Superfish Module
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