function navigation_module_implements_alter

Same name in other branches
  1. 11.x core/modules/navigation/navigation.module \navigation_module_implements_alter()

Implements hook_module_implements_alter().

File

core/modules/navigation/navigation.module, line 75

Code

function navigation_module_implements_alter(&$implementations, $hook) {
    if ($hook == 'page_top') {
        $group = $implementations['navigation'];
        unset($implementations['navigation']);
        $implementations['navigation'] = $group;
    }
    if ($hook == 'help') {
        // We take over the layout_builder hook_help().
        unset($implementations['layout_builder']);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.