menu_link_weight-8.x-1.x-dev/menu_link_weight.install
menu_link_weight.install
<?php
/**
* @file
* Contains install and uninstall functions for the Menu Link Weight module.
*/
/**
* Implements hook_install().
*/
function menu_link_weight_install() {
// Set the module weight higher than Menu UI module so that
// menu_link_weight_form_node_form_alter() is called after
// menu_ui_form_node_form_alter().
module_set_weight('menu_link_weight', 10);
}
/**
* Add default settings for menu_parent_form_selector.
*/
function menu_link_weight_update_8100() {
\Drupal::configFactory()->getEditable('menu_link_weight.settings')
->set('menu_parent_form_selector', 'default')
->save();
}
