Make every menu item as "Show as Expanded"

Public

can be useful to have dropdown menus for og menus ,when og menus are automatically created with the group.

Get raw version
php
  1. function hook_menu_link_alter(&$item) {
  2. $item['expanded'] = 1;
  3. }