From f5b3194b3dcf23c6568bad44125d698575d82a0e Mon Sep 17 00:00:00 2001 From: Liam Morland <lkmorlan@uwaterloo.ca> Date: Wed, 13 Oct 2021 16:16:13 -0400 Subject: [PATCH] ISTWCMS-5085: Adjust comments in uw_cfg_common_form_menu_edit_form_alter() --- uw_cfg_common.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uw_cfg_common.module b/uw_cfg_common.module index 1bc2d461..b4169ac9 100644 --- a/uw_cfg_common.module +++ b/uw_cfg_common.module @@ -470,11 +470,11 @@ function uw_cfg_common_form_node_uw_ct_web_page_edit_form_alter(array &$form, Fo /** * Implements hook_form_FORM_ID_alter(). * - * Menu edit form: admin/structure/menu/manage/main. - * - * Prevent certain changes to the home page. + * Menu edit form: admin/structure/menu/manage/{menu}. */ function uw_cfg_common_form_menu_edit_form_alter(array &$form, FormStateInterface $form_state, string $form_id): void { + // Prevent certain changes to the home page. + // // No changes for those with access. if (\Drupal::currentUser()->hasPermission('bypass home page protection')) { return; -- GitLab