You are here

function content_menu_install in Content Menu 8

Same name and namespace in other branches
  1. 7 content_menu.install \content_menu_install()

Implements hook_install().

File

./content_menu.install, line 7

Code

function content_menu_install() {

  // Set weight to come after core menu.module.
  // Make sure this module's hooks' weight is set to be executed after the core.
  // Menu.module's hooks, so the node add/edit form is already altered by the
  // Menu.module befor content_menu does its form alterations.
  $weight = config('system.module')
    ->get('enabled.menu');
  module_set_weight('content_menu', $weight + 1);
}