function og_menu_module_implements_alter in Organic Groups Menu (OG Menu) 8
Implements hook_module_implements_alter().
File
- ./
og_menu.module, line 139 - Main functions and hook implementations of the og_menu module.
Code
function og_menu_module_implements_alter(&$implementations, $hook) {
switch ($hook) {
case 'form_alter':
// Make sure og_menu_form_alter() runs after og_ui_menu_form_alter(). The
// latter populates the group types on the entity bundle form, but we need
// to alter them to ensure the 'Group type' option is always checked.
// @see og_menu_form_alter()
$implementation = $implementations['og_menu'];
unset($implementations['og_menu']);
$implementations['og_menu'] = $implementation;
break;
case 'system_breadcrumb_alter':
// Since menu_ui_system_breadcrumb_alter() was throwing errors while
// trying to load an ogmenu_instance and fetching its label we have made
// our own implementation for this.
// @see og_menu_system_breadcrumb_alter()
unset($implementations['menu_ui']);
break;
}
}